Files
Moonlight/Moonlight.Client/UI/Shell/SidebarDrawer.razor

31 lines
531 B
Plaintext

@inherits MoonCore.Blazor.FlyonUi.Drawers.DrawerBase
@inject NavigationManager Navigation
@implements IDisposable
<SidebarComponent />
@code
{
protected override void OnInitialized()
{
Navigation.LocationChanged += OnLocationChanged;
}
private async void OnLocationChanged(object? sender, LocationChangedEventArgs e)
{
try
{
await CloseAsync();
}
catch (Exception)
{
// Ignored
}
}
public void Dispose()
{
}
}