Skip to content

Commit

Permalink
fix(VDatePicker): using the start range that has been cleared (#19869)
Browse files Browse the repository at this point in the history
fixes #19854

Co-authored-by: Timmy <[email protected]>
  • Loading branch information
TIM56887 and Timmy authored May 29, 2024
1 parent 8d7beeb commit f401f41
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({
function onRangeClick (value: unknown) {
const _value = adapter.startOfDay(value)

if (model.value.length === 0) {
rangeStart.value = undefined
}
if (!rangeStart.value) {
rangeStart.value = _value
model.value = [rangeStart.value]
Expand Down

0 comments on commit f401f41

Please sign in to comment.