v-model value not gets updated on backspace
ankurk91 opened this issue · comments
This should be fixed as soon as
igorescobar/jQuery-Mask-Plugin#656
OR
igorescobar/jQuery-Mask-Plugin#674
gets merged
Another way is to listen to input
event
<input :type="type" @input="onInput">
onInput(e) {
let toEmit = this.raw ? jQuery(this.$el).cleanVal() : e.target.value;
this.$emit('input', toEmit);
},