Skip to content

Commit

Permalink
[DateRangePicker] Fix calendarHeader slot props propagation (#13780)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored Jul 10, 2024
1 parent 528a3da commit f4ff9f1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const PickersRangeCalendarHeader = React.forwardRef(function PickersRangeCalenda
minDate,
maxDate,
timezone,
} = props;
// omit props that are not used in the PickersArrowSwitcher
reduceAnimations,
views,
view,
...otherRangeProps
} = other;

const isNextMonthDisabled = useNextMonthDisabled(currentMonth, {
disableFuture,
Expand All @@ -65,6 +70,7 @@ const PickersRangeCalendarHeader = React.forwardRef(function PickersRangeCalenda

return (
<PickersRangeCalendarHeaderContentMultipleCalendars
{...otherRangeProps}
ref={ref}
onGoToPrevious={selectPreviousMonth}
onGoToNext={selectNextMonth}
Expand Down

0 comments on commit f4ff9f1

Please sign in to comment.