Adding Contextmenu after version 1.41.6 #1856
-
I would like to open a context menu whenever the user right clicks on the vue-flow area. The following solution worked until version 1.41.6 decided to stop the event from propagating: Now I use Is this a bug? Or is there some easy workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not necesarrily a bug but possibly unexpexcted behavior as this was done to allow ctrl key to be used as the For now you could wrap |
Beta Was this translation helpful? Give feedback.
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.