We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48fb01c + 674ddc1 commit b4268ccCopy full SHA for b4268cc
src/component.vue
@@ -59,7 +59,7 @@ export default {
59
directives: {
60
number: directive
61
},
62
- emits: ['update:modelValue'],
+ emits: ['update:modelValue','input:modelValue'],
63
data() {
64
return {
65
maskedValue: this.modelValue,
@@ -70,6 +70,7 @@ export default {
70
input({ target }) {
71
this.maskedValue = target.value
72
this.unmaskedValue = target.unmaskedValue
73
+ this.$emit('input:modelValue', this.emittedValue)
74
75
change() {
76
this.$emit('update:modelValue', this.emittedValue)
0 commit comments