Skip to content
Discussion options

You must be logged in to vote

Check out, if default contextmenu behaviour in your trigger component is not disabled.

 containerDiv.addEventListener("contextmenu", (e) => {
    e.preventDefault();  // <-- prevents from displaying browser context menu, but also may affect <ContextMenuTrigger> behaviour
    e.stopPropagation(); // <-- same
    //...
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alamenai
Comment options

Answer selected by alamenai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants