Blazored / Menu

A JavaScript free menu library for Blazor and Razor Components applications.
https://blazored.github.io/Menu
MIT License
177 stars 32 forks source link

[Bug] IconClassToClose or IconClassToOpen not specified #31

Open wartek69 opened 1 year ago

wartek69 commented 1 year ago

Describe the bug I'm getting the following while trying to use a submenu.

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: IconClassToClose or IconClassToOpen not specified
System.ArgumentException: IconClassToClose or IconClassToOpen not specified
   at Blazored.Menu.BlazoredSubMenuBase.OnParametersSet()
   at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()

I just followed the readme to import the library in a .net7 app using webassembly.

Otto404 commented 1 year ago

I see that error as well

SteveTeece commented 1 year ago

I'm getting it targeting .net6 in a Blazor Server app