From 232417c437a5b6e4d01f0f0ec8130ba99a367cb9 Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Wed, 25 Sep 2024 20:36:24 +0900 Subject: [PATCH] fix: show viewDate year when yearNavigator mode --- components/lib/calendar/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index 8ccb7c1adc..46305132ff 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -3342,7 +3342,7 @@ export const Calendar = React.memo( const createTitleYearElement = (metaYear) => { const viewDate = getViewDate(); const viewYear = viewDate.getFullYear(); - const displayYear = props.numberOfMonths > 1 ? metaYear : currentYear; + const displayYear = props.numberOfMonths > 1 ? metaYear : viewYear; if (props.yearNavigator) { let yearOptions = [];