pull/1885/head
Cagatay Civici 2021-12-07 11:05:30 +03:00
commit 0c23cc6d0b
1 changed files with 14 additions and 2 deletions

View File

@ -443,10 +443,22 @@ export default {
return false;
},
isMonthSelected(month) {
return this.isComparable() ? (this.modelValue.getMonth() === month && this.modelValue.getFullYear() === this.currentYear) : false;
if (this.isComparable()) {
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
}
return false;
},
isYearSelected(year) {
return this.isComparable() ? (this.modelValue.getFullYear() === year) : false;
if (this.isComparable()) {
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
}
return false;
},
isDateEquals(value, dateMeta) {
if (value)