From b1c9e6849442f0d1acbc6265ac9350c5b9bce4d6 Mon Sep 17 00:00:00 2001 From: Melloware Date: Tue, 21 Feb 2023 06:26:11 -0500 Subject: [PATCH] Fix #4058: Calendar fix multiple months year display (#4067) --- 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 b2a28222f9..677259f147 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -2688,7 +2688,7 @@ export const Calendar = React.memo( return content; } - const displayYear = props.inline ? metaYear : currentYear; + const displayYear = props.numberOfMonths > 1 ? metaYear : currentYear; return ( currentView !== 'year' && (