Skip to content

Commit

Permalink
Fix #4058: Calendar fix multiple months year display (#4067)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Feb 21, 2023
1 parent 7345375 commit b1c9e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' && (
Expand Down

0 comments on commit b1c9e68

Please sign in to comment.