gpbl / gpbl/react-day-picker

Changing `endMonth` to a date smaller than the currently viewed month removes the month grid and dropdowns

Open
#2,912 0 comments 0 reactions 1 assignee Claimed by @rodgobbi View on GitHub
Dominant language
TypeScript
Stars
6.9k
Forks
780
Avg merge
2d 3h
Merged PRs (30d)
3

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.