Skip to content

Commit

Permalink
fix(VDatePicker): using the start range that has been cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmy authored and TIM56887 committed May 25, 2024
1 parent 407585d commit 3b8bf46
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 3b8bf46

Please sign in to comment.