From 54b16a1c84f302da33f01f8a6a8837ae81222052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Tue, 4 Jan 2022 11:41:21 +0300 Subject: [PATCH] Fixed #1942 - Calendar: the Year is incorrect for Multiple Months mode --- src/components/calendar/Calendar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 995820268..3209fa5c1 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -19,7 +19,7 @@ {{getMonthName(month.month)}} @@ -2215,6 +2215,9 @@ export default { getMonthName(index) { return this.$primevue.config.locale.monthNames[index]; }, + getYear(month) { + return this.currentView === 'month' ? this.currentYear : month.year; + }, onOverlayClick(event) { if (!this.inline) { OverlayEventBus.emit('overlay-click', {