Skip to content

Commit

Permalink
Merge pull request #4615 from EdisonHarada/master
Browse files Browse the repository at this point in the history
Fix currentYear is not defined
  • Loading branch information
tugcekucukoglu authored Oct 17, 2023
2 parents dfb6c10 + 4249c2d commit 3feaf72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3feaf72

Please sign in to comment.