Skip to content

fix: clamp displayed month when endMonth changes#3004

Open
wanxiankai wants to merge 1 commit into
gpbl:mainfrom
wanxiankai:fix/clamp-month-after-endmonth-change
Open

fix: clamp displayed month when endMonth changes#3004
wanxiankai wants to merge 1 commit into
gpbl:mainfrom
wanxiankai:fix/clamp-month-after-endmonth-change

Conversation

@wanxiankai

Copy link
Copy Markdown

Summary

Fixes #2912

Tests

  • pnpm exec jest packages/react-day-picker/src/DayPicker.test.tsx --selectProjects src --runInBand --no-watchman
  • pnpm run lint
  • pnpm run typecheck
  • TZ=UTC pnpm exec jest --selectProjects examples --selectProjects src --selectProjects packages --selectProjects scripts --runInBand --no-watchman

@wanxiankai
wanxiankai requested a review from gpbl as a code owner July 19, 2026 11:03
@changeset-bot

changeset-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2e584ae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant