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 Last working version: 2.7.1 Vue Version: 3.4.27 Browsers: Firefox 126.0 OS: Mac OS 10.15
We really need the user to be able to pick the same date as the start and the end in the v-date-picker (with multiple="range").
The user can click twice on the same date and get [sameDate, sameDate] as a value
[sameDate, sameDate]
The date selection is reset on the second click
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered:
I think it's all about removing the first if here (line 101 in VDatePickerMonth.tsx):
if
if (adapter.isSameDay(_value, rangeStart.value)) { rangeStart.value = undefined model.value = [] return } else if (adapter.isBefore(_value, rangeStart.value)) { rangeStop.value = adapter.endOfDay(rangeStart.value) rangeStart.value = _value } else { rangeStop.value = adapter.endOfDay(_value) }
Sorry, something went wrong.
Just to reiterate, the behaviour was correct in Vuetify 2. It was possible to click on the same date twice and choose it as a range.
Successfully merging a pull request may close this issue.
Environment
Vuetify Version: 3.6.8
Last working version: 2.7.1
Vue Version: 3.4.27
Browsers: Firefox 126.0
OS: Mac OS 10.15
Steps to reproduce
We really need the user to be able to pick the same date as the start and the end in the v-date-picker (with multiple="range").
Expected Behavior
The user can click twice on the same date and get
[sameDate, sameDate]
as a valueActual Behavior
The date selection is reset on the second click
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: