Blazored / Menu

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

[Bug] #29

Open aweizh opened 2 years ago

aweizh commented 2 years ago

Hi Chris! Your Menu component is realy great! And teach me a lot. Thank you very much! My English is not good enough to Describe the bug So ... (1) BlazoredSubMenuBase.cs The icon changing doesn't work when i create a new Razor page and click the item(but the KeyDownHandler works well...),

//2022.3.25 修改
 //protected override void OnParametersSet()
protected override void OnInitialized()

(2) BlazoredSubMenu.razor If the header is too long, the text will cover the icon.

@*<span role="button" tabindex="0" @onclick="ToggleSubMenu" @onkeydown="KeyDownHandler">@HeaderTemplate <i class="@IconCss">@Icon</i></span>*@
<div class="row p-0">
        <div class="row p-0 m-0">
            <div class="col-10 p-0 m-0">
                <span role="button" tabindex="0" @onclick="ToggleSubMenu" @onkeydown="KeyDownHandler">@HeaderTemplate</span>
            </div>
            <div class="col-1 p-0 m-0">
                <i class="@IconCss">@Icon</i>
            </div>
        </div>