Skip to content

Commit 962cda0

Browse files
authored
fix(VDateInput): derive display format from date adapter locale (#22976)
1 parent 8f954f7 commit 962cda0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/vuetify/src/components/VDateInput/VDateInput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ export const VDateInput = genericComponent<new <
108108
},
109109

110110
setup (props, { emit, slots }) {
111-
const { t, current: currentLocale } = useLocale()
111+
const { t } = useLocale()
112112
const adapter = useDate()
113-
const { isValid, parseDate, formatDate, parserFormat } = useDateFormat(props, currentLocale)
113+
const adapterLocale = computed(() => adapter.locale)
114+
const { isValid, parseDate, formatDate, parserFormat } = useDateFormat(props, adapterLocale)
114115
const { mobile } = useDisplay(props)
115116
const { InputIcon } = useInputIcon(props)
116117

0 commit comments

Comments
 (0)