Closed WhatWhatz closed 4 years ago
I tried to use Vue.use('vue-shortkey', { prevent: ['input', 'textarea'] })
but it still doesn't work. and It was an input element.
Anybody read this? I have the same problem!
Found a work around using Vue.use(require('vue-shortkey'), { prevent: ['input', 'textarea'] })
in main.js
.
v-color-picker should encapsulate the input element and the avoid command isn't applied to them. So try to apply the prevention to the class.
Vue.use('vue-shortkey', { prevent: ['.input-color-picker-style-class'] })
the
v-shortkey.avoid
does not work on the vuetifyv-color-picker
. I believe that the text input is insidev-color-picker
and therefor the avoid does not work. Is there anyway to propagate the .avoid to all the children of an element?