Skip to content

How to dynamically close context menu after preventDefault on Menu Item #1447

Answered by benoitgrelard
flexa-david asked this question in Help
Discussion options

You must be logged in to vote

Hey @flexa-david,

Not sure if I fully understood what you're trying to achieve, but here's a quick and dirty demo of how you could achieve it (from my understanding)

https://codesandbox.io/s/contextmenu-table-focus-xpk9fi?file=/src/App.js

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flexa-david
Comment options

Answer selected by flexa-david
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants