From 4249c2d9caf42ace83a3d024d1c420d2590b2099 Mon Sep 17 00:00:00 2001 From: Edison Harada Date: Sun, 15 Oct 2023 14:10:02 +0200 Subject: [PATCH] Fix out of scope variable --- components/lib/calendar/Calendar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 05c1763037..48d1bbc6dd 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -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; } }