Menu icon indicating copy to clipboard operation
Menu copied to clipboard

[Bug]

Open aweizh opened this issue 2 years ago • 0 comments

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>

aweizh avatar Mar 25 '22 16:03 aweizh