From e23e5349541bfe78b83678fda8fd5022b86ec188 Mon Sep 17 00:00:00 2001 From: KumJungMin <37934668+KumJungMin@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:05:06 +0900 Subject: [PATCH] fix: show viewDate year when yearNavigator mode (#7252) --- 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 = [];