'v-on' directives don't support the modifier 'contextmenu'
Version
3.0.7
Reproduction link
https://codesandbox.io/s/fast-cloud-53d6o?file=/src/App.vue
Steps to reproduce
I want build a keyup Event respond from ContentMenu
key
but Vue3 'v-on' directives the modifier don't support it
What is expected?
I want Vue direact support ContentMenu
key keyup Event
What is actually happening?
@keydown.contextmenu="enter"
will error
'v-on' directives don't support the modifier 'contextmenu'
Find the name of the key and use the kebab version of it: https://v3.vuejs.org/guide/migration/keycode-modifiers.html#_3-x-syntax. Note contextmenu
is an event on its own: @contextmenu="..."
Remember to use the forum or the Discord chat to ask questions!