File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -83,19 +83,15 @@ export default defineComponent({
8383 const unmaskedValue = ref (' ' as Input | undefined )
8484 const config = computed (() => ({ ... props }))
8585
86- const emittedValue = computed (() => {
87- return props .masked ? maskedValue .value : unmaskedValue .value
88- })
89-
9086 const input = (event : Event ) => {
9187 const { target } = event as CustomInputEvent
9288 maskedValue .value = target .value
9389 unmaskedValue .value = target .unmaskedValue
94- emit (' input:model-value' , emittedValue .value )
90+ emit (' input:model-value' , props . masked ? maskedValue . value : unmaskedValue .value )
9591 }
9692
9793 const change = () => {
98- emit (' update:model-value' , emittedValue .value )
94+ emit (' update:model-value' , props . masked ? maskedValue . value : unmaskedValue .value )
9995 }
10096
10197 watch (
You can’t perform that action at this time.
0 commit comments