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', {