From 5dc41eb7906442e760bb4b7cd9d69efc8606e03c Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 17 Nov 2021 17:49:44 +0300 Subject: [PATCH] Fixed #1716 - Calendar in timeonly mode ignores minDate, maxDate --- src/components/calendar/Calendar.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index db5b432ddf..62de1e0445 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -1178,12 +1178,10 @@ export default { } return hours; }, - validateTime(hour, minute, second, pm) { - let value = this.modelValue; + validateTime(hour, minute, second, pm) { + let value = this.isComparable() ? this.modelValue : this.viewDate; const convertedHour = this.convertTo24Hour(hour, pm); - if (!this.isComparable()) { - return true; - } + if (this.isRangeSelection()) { value = this.modelValue[1] || this.modelValue[0]; }