Skip to content

Commit

Permalink
Fix currentMonthCalendarPosition not scrolling to future sibling
Browse files Browse the repository at this point in the history
  • Loading branch information
GMchris committed Sep 1, 2024
1 parent dd1acbf commit c92495a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ const DateRangeCalendar = React.forwardRef(function DateRangeCalendar<
return;
}

const displayingMonthRange = calendars - 1;
const displayingMonthRange = calendars - currentMonthCalendarPosition;
const currentMonthNumber = utils.getMonth(calendarState.currentMonth);
const requestedMonthNumber = utils.getMonth(date);

Expand Down

0 comments on commit c92495a

Please sign in to comment.