File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/vuetify/src/labs/VMaskInput Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { makeMaskProps, useMask } from '@/composables/mask'
7
7
import { useProxiedModel } from '@/composables/proxiedModel'
8
8
9
9
// Utilities
10
- import { computed , onBeforeMount , ref } from 'vue'
10
+ import { computed , onBeforeMount , ref , toRef } from 'vue'
11
11
import { genericComponent , propsFactory , useRender } from '@/util'
12
12
13
13
// Types
@@ -60,6 +60,8 @@ export const VMaskInput = genericComponent<VMaskInputSlots>()({
60
60
} ,
61
61
)
62
62
63
+ const validationValue = toRef ( ( ) => returnMaskedValue . value ? maskText ( model . value ) : unmaskText ( model . value ) )
64
+
63
65
onBeforeMount ( ( ) => {
64
66
if ( props . returnMaskedValue ) {
65
67
emit ( 'update:modelValue' , model . value )
@@ -74,6 +76,7 @@ export const VMaskInput = genericComponent<VMaskInputSlots>()({
74
76
{ ...textFieldProps }
75
77
v-model = { model . value }
76
78
ref = { vTextFieldRef }
79
+ validationValue = { validationValue . value }
77
80
>
78
81
{ { ...slots } }
79
82
</ VTextField >
You can’t perform that action at this time.
0 commit comments