File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/vuetify/src/labs/VDateInput Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,14 @@ export const VDateInput = genericComponent<VDateInputSlots>()({
62
62
const { t } = useLocale ( )
63
63
const adapter = useDate ( )
64
64
const { isFocused, focus, blur } = useFocus ( props )
65
- const model = useProxiedModel ( props , 'modelValue' , props . multiple ? [ ] : null )
65
+ const model = useProxiedModel (
66
+ props ,
67
+ 'modelValue' ,
68
+ props . multiple ? [ ] : null ,
69
+ val => Array . isArray ( val ) ? val . map ( item => adapter . toJsDate ( item ) ) : val ? adapter . toJsDate ( val ) : val ,
70
+ val => Array . isArray ( val ) ? val . map ( item => adapter . date ( item ) ) : val ? adapter . date ( val ) : val
71
+ )
72
+
66
73
const menu = shallowRef ( false )
67
74
const vDateInputRef = ref ( )
68
75
@@ -100,7 +107,7 @@ export const VDateInput = genericComponent<VDateInputSlots>()({
100
107
101
108
const target = e . target as HTMLInputElement
102
109
103
- model . value = adapter . date ( target . value )
110
+ model . value = target . value
104
111
}
105
112
106
113
function onClick ( e : MouseEvent ) {
You can’t perform that action at this time.
0 commit comments