Fixed #1716 - Calendar in timeonly mode ignores minDate, maxDate

pull/1792/head
Cagatay Civici 2021-11-17 17:49:44 +03:00
parent e620db8a71
commit 5dc41eb790
1 changed files with 3 additions and 5 deletions

View File

@ -1179,11 +1179,9 @@ export default {
return hours;
},
validateTime(hour, minute, second, pm) {
let value = this.modelValue;
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];
}