BlazorContextMenu
BlazorContextMenu copied to clipboard
"OnClick" actions not working in components
If an attempt is made to use the context menu in a component, the "OnClick" actions are not executed.
@NickVogt29 Make sure your ContextMenuTrigger and ContextMenu have unique Id if you render components in loop. And then it works like a charm.
No it doesnt. I have ContextMenu.Id and coresponding ContextMenuTrigger.MenuId unique but it doenst work. I open the dev dools in browser and there is data-instance-id which is the same for every item in the list. Like first item on one page is the same as for first item on other page (and second item on one page has the same data-instance-id as second item on another page) - i think this may be the issue but i dont know how to fix it.