Skip to content

Adding Contextmenu after version 1.41.6 #1856

Answered by bcakmakoglu
SelfMade2001 asked this question in Q&A
Discussion options

You must be logged in to vote

Not necesarrily a bug but possibly unexpexcted behavior as this was done to allow ctrl key to be used as the panActivationKeyCode.
Since that also causes a contextmenu event on Mac (ctrl + left = contextmenu) the event is stopped from propagation altogether (might revisit this decision in the next major, we'll see).

For now you could wrap <VueFlow> in a <div> and add @context-menu there (in addition to having @pane-context-menu as that would be registered when right-clicking nodes.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bcakmakoglu
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