Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"OnClick" actions not working in components #140

Open
NickVogt29 opened this issue Jun 21, 2023 · 2 comments
Open

"OnClick" actions not working in components #140

NickVogt29 opened this issue Jun 21, 2023 · 2 comments

Comments

@NickVogt29
Copy link

If an attempt is made to use the context menu in a component, the "OnClick" actions are not executed.

@Lamps26
Copy link

Lamps26 commented Aug 25, 2023

@NickVogt29 Make sure your ContextMenuTrigger and ContextMenu have unique Id if you render components in loop. And then it works like a charm.

@DavidNeuwirth1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants