Skip to content

Commit

Permalink
fix: show viewDate year when yearNavigator mode (#7252)
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin authored Sep 25, 2024
1 parent ff3b083 commit e23e534
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 @@ -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 = [];
Expand Down

0 comments on commit e23e534

Please sign in to comment.