Changing `endMonth` to a date smaller than the currently viewed month removes the month grid and dropdowns
Author: IceFreez3rCreated Mar 31, 2026Updated Apr 1, 2026
To reproduce
CodeSandbox: https://codesandbox.io/p/sandbox/daypicker-bug-report-forked-cy6fxl
Actual Behavior
Changing endMonth to a date smaller than the currently viewed month removes the month grid and dropdowns.
Expected Behavior
Changing endMonth to a date smaller than the currently viewed month still shows the month grid and dropdowns. Potentially switch the view to the closest possible month.
Screenshots
https://github.com/user-attachments/assets/3825da4b-779e-48fd-907f-567f63d5ca8b
Source: gpbl/react-day-picker