Skip to content

Commit b4268cc

Browse files
authored
Merge pull request #12 from bjerggaard/emit_input_event
Emit input event
2 parents 48fb01c + 674ddc1 commit b4268cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/component.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
directives: {
6060
number: directive
6161
},
62-
emits: ['update:modelValue'],
62+
emits: ['update:modelValue','input:modelValue'],
6363
data() {
6464
return {
6565
maskedValue: this.modelValue,
@@ -70,6 +70,7 @@ export default {
7070
input({ target }) {
7171
this.maskedValue = target.value
7272
this.unmaskedValue = target.unmaskedValue
73+
this.$emit('input:modelValue', this.emittedValue)
7374
},
7475
change() {
7576
this.$emit('update:modelValue', this.emittedValue)

0 commit comments

Comments
 (0)