DesignRevision / shards-vue

🌟Shards Vue is a free, beautiful and modern Vue.js UI kit based on Shards.
https://designrevision.com/docs/shards-vue/
MIT License
393 stars 40 forks source link

Shards-vue don't trigger event modifiers - keydown #24

Closed c-zab closed 4 years ago

c-zab commented 4 years ago

Expected Behavior

Inputs don't trigger event modifiers

Current Behavior

Usual input triggers event modifiers but d-input doesn't

<d-input
   v-model="myData"
   v-on:keydown="keydownMethod"
/>

Steps to Reproduce

  1. Create new vue-cli project
  2. Install and load ShardsVue
  3. Add <d-input ... v-on:keydown="keydownMethod" />
  4. Method is never triggered
c-zab commented 4 years ago

@keydown.native fixes the issue.

https://vuejs.org/v2/guide/migration.html#Listening-for-Native-Events-on-Components-with-v-on-changed