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>