File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -83,19 +83,15 @@ export default defineComponent({
83
83
const unmaskedValue = ref (' ' as Input | undefined )
84
84
const config = computed (() => ({ ... props }))
85
85
86
- const emittedValue = computed (() => {
87
- return props .masked ? maskedValue .value : unmaskedValue .value
88
- })
89
-
90
86
const input = (event : Event ) => {
91
87
const { target } = event as CustomInputEvent
92
88
maskedValue .value = target .value
93
89
unmaskedValue .value = target .unmaskedValue
94
- emit (' input:model-value' , emittedValue .value )
90
+ emit (' input:model-value' , props . masked ? maskedValue . value : unmaskedValue .value )
95
91
}
96
92
97
93
const change = () => {
98
- emit (' update:model-value' , emittedValue .value )
94
+ emit (' update:model-value' , props . masked ? maskedValue . value : unmaskedValue .value )
99
95
}
100
96
101
97
watch (
You can’t perform that action at this time.
0 commit comments