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

@ -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];
}