mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Merge pull request #4615 from EdisonHarada/master
Fix currentYear is not defined
This commit is contained in:
commit
3feaf726bb
1 changed files with 2 additions and 2 deletions
|
@ -675,9 +675,9 @@ export default {
|
|||
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
||||
|
||||
if (this.isMultipleSelection()) {
|
||||
return value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === currentYear);
|
||||
return value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
|
||||
} else {
|
||||
return value.getMonth() === month && value.getFullYear() === currentYear;
|
||||
return value.getMonth() === month && value.getFullYear() === this.currentYear;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue