Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 18005

MudMenuItem not displaying on click on MudMenu

$
0
0

I am trying to create a MudMenu dynamically, deserializing a json and building the menu hierarchy as follows.The menu is showing, however clicking the menu is not opening the submenu...

<MudLayout><MudAppBar Elevation="1"><MudMenu FullWidth="true"><ActivatorContent><MudAvatar Size="Size.Large"><MudImage class="myImage" Src="/Images/paradise_logo.png" Elevation="25"/></MudAvatar></ActivatorContent></MudMenu>        @if(categories != null)         {            @foreach (var category in categories.AllCategories.Values)            {<MudMenu StartIcon="@Icons.Material.Rounded.Grain" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@category.CategoryName" Color="Color.Primary" Variant="Variant.Filled"><ChildContent>                        @foreach(var subCategory in category.SubCategories) {<MudMenuItem>"@subCategory.Value.CategoryName"</MudMenuItem>                        }</ChildContent></MudMenu>            }        }<MudSpacer /><MudIconButton Icon="@Icons.Material.Filled.MoreVert" Color="Color.Inherit" Edge="Edge.End" /></MudAppBar><MudMainContent>        @Body</MudMainContent></MudLayout>

Viewing all articles
Browse latest Browse all 18005


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