We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vuetify Version: 3.6.8 Vue Version: 3.4.27 Browsers: Chrome 125.0.0.0 OS: Windows 10
Issue 1: Doesn't respond to text input
Issue 2: Hitting enter in the input's text-field clears the selection
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered:
Until these two issues are fixed. Here are the workarounds I'm using for anyone else who hits. Using date-fns for the date adapter.
<script setup lang="ts"> const date = useDate(); const selectedDates = ref([]); // Vuetify bug where changing text input doesn't update selected dates // https://github.com/vuetifyjs/vuetify/issues/19951 function onInput(event: InputEvent) { const input = event.target as HTMLInputElement; const [start, end] = input.value.split(' - ').map((d) => date.parse(d, 'P')); if (start && date.isValid(start) && end && date.isValid(end)) { selectedDates.value = date.eachDayOfInterval({ start, end }); } } // Vuetify bug hitting enter inside of date-input multiple="range" // https://github.com/vuetifyjs/vuetify/issues/19951 let lastSelectedDates = [new Date()]; watch(selectedDates, () => { if (!Array.isArray(selectedDates.value)) { selectedDates.value = lastSelectedDates; } lastSelectedDates = selectedDates.value; }); </script> <template> <v-date-input v-model="selectedDates" @input="onInput" > </v-date-input> </template>
Sorry, something went wrong.
feat(VDateInput): parse text field value in locale aware way
5c7129a
Refactored date adapter to make the Intl format options available for custom functions resolves vuetifyjs#19803 resolved vuetifyjs#19951
No branches or pull requests
Environment
Vuetify Version: 3.6.8
Vue Version: 3.4.27
Browsers: Chrome 125.0.0.0
OS: Windows 10
Steps to reproduce
Issue 1: Doesn't respond to text input
Issue 2: Hitting enter in the input's text-field clears the selection
Expected Behavior
Actual Behavior
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: