We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cc2203 commit 61b43caCopy full SHA for 61b43ca
src/component.vue
@@ -58,13 +58,19 @@ export default {
58
emits: ['update:modelValue'],
59
data() {
60
return {
61
- maskedValue: this.modelValue,
+ maskedValue: null,
62
unmaskedValue: null
63
}
64
},
65
watch: {
66
masked() {
67
- this.$emit('input', this.emittedValue)
+ this.$emit('update:modelValue', this.emittedValue)
68
+ },
69
+ modelValue: {
70
+ deep: true,
71
+ handler (val) {
72
+ this.maskedValue = val
73
+ }
74
75
76
methods: {
0 commit comments