phiny1 / v-currency-field

The Vuetify Currency Field uses Vue Currency Input directive to create a currency component (<v-currency-field>)
https://phiny1.github.io/v-currency-field/
MIT License
60 stars 29 forks source link

Input events does not works (blur, change, keyup,..) #19

Closed Gnoc closed 4 years ago

Gnoc commented 4 years ago

Hello, good day. I registered the event but it didn't work, below is my code.

env: "vue": "^2.5.17", "vuetify": "^1.3.12", "v-currency-field": "^3.0.6",

main.js import VCurrencyField from 'v-currency-field' Vue.use(VCurrencyField, { decimalLength: 0, autoDecimalMode: true, min: null, max: null, })

Usage: <v-currency-field label="% giảm giá" v-model="product.SalePercent" class="text-right" append-icon="%" @keyup="salePercentInput" @blur="salePercentInput" ref="test2" data-vv-name="% giảm giá" :error-messages="errors.collect('% giảm giá')" v-validate="'max_value:100'" />

methods: salePercentInput: function () { alert(); },

Thanks

curiousyigit commented 4 years ago

Same here

phiny1 commented 4 years ago

Fixed on 3.0.7

Ancient-Dragon commented 4 years ago

@phiny1 I'm still unable to use @keyup with v3.1.0. keydown/keypress work.