Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

MudDrawer does not close when bound to state

$
0
0

I got an MudDrawer which looks like this:

<MudDrawer Open="GlobaleState.IsDrawerOpen"><MudDrawerHeader><MudText Typo="Typo.h5" Class="mt-1">Title</MudText></MudDrawerHeader><NavMenu /><MudSpacer /><MudDivider /><MudContainer><MudToggleIconButton /></MudContainer></MudDrawer>

It is Toggled by the AppBar:

<MudAppBar><MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="OnIsDrawerOpenChanged" /></MudAppBar>

This works fine in normal display size. But on mobile or with strong zoom it is not possible to deactive the MudDrawer Overlay. When I had two-way-binding without the State it worked.

enter image description here

Wheres the problem? Is a Binding missing?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>