Merge branch 'master' of https://github.com/primefaces/primevue
commit
0c23cc6d0b
|
@ -443,10 +443,22 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
isMonthSelected(month) {
|
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) {
|
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) {
|
isDateEquals(value, dateMeta) {
|
||||||
if (value)
|
if (value)
|
||||||
|
|
Loading…
Reference in New Issue