Closed peterblazejewicz closed 4 years ago
Also noticing the same thing. The IEnumerable<MenuItem>
collection is apparently not populated in that mode.
I figured it out... you need to wrap the sub menu items in <MenuTemplate>....</MenuTemplate>
like the documentation example. So:
<BlazoredSubMenu Header="Sub Menu">
<MenuTemplate>
<BlazoredMenuItem>
<NavLink href="counter">Counter</NavLink>
</BlazoredMenuItem>
<BlazoredMenuItem>
<NavLink href="fetchdata">Fetch data</NavLink>
</BlazoredMenuItem>
</MenuTemplate>
</BlazoredSubMenu>
Thanks for spotting that one @aarondcoleman. I've updated the sample in the repo
I've tried this also under the 3.1.0 Preview 2 there is a still a problem:
li
submenu nodeTBI