Skip to content

Commit

Permalink
Fixed #1716 - Calendar in timeonly mode ignores minDate, maxDate
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 17, 2021
1 parent e620db8 commit 5dc41eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 5dc41eb

Please sign in to comment.