Skip to content

Commit 4446ebf

Browse files
authored
fix(VDateInput): assign type to displayFormat function (#21684)
fixes #21683
1 parent 543f932 commit 4446ebf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vuetify/src/labs/VDateInput/VDateInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export type VDateInputSlots = Omit<VTextFieldSlots, 'default'> & {
3636
}
3737

3838
export const makeVDateInputProps = propsFactory({
39-
displayFormat: [Function, String],
39+
displayFormat: {
40+
type: [Function, String] as PropType<string | ((date: typeof VDatePicker['props']['modelValue']) => any)>,
41+
default: undefined,
42+
},
4043
location: {
4144
type: String as PropType<StrategyProps['location']>,
4245
default: 'bottom start',

0 commit comments

Comments
 (0)