Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When displaying two calendars, the behavior of month changes using the dropdown is inconsistent. #5371

Open
6mn12j opened this issue Jan 31, 2025 · 0 comments

Comments

@6mn12j
Copy link

6mn12j commented Jan 31, 2025

Describe the bug

When two calendars for selecting a date range are displayed, selecting the second calendar and changing the month using the dropdown updates the month based on the second calendar.

When two calendars are displayed, I expect the month change via the dropdown to be based on the first calendar.

In this situation, even when a minimum date is set, selecting a month using the dropdown allows dates before the minimum date to be displayed.

2025-01-31.5.51.38.mov

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/loving-http-ylph77
  2. Select a date from the first calendar
  3. Change the month using the dropdown
  4. Select a date from the second calendar
  5. Change the month using the dropdown

-> The behavior differs between the two cases.

Expected behavior

When changing the month using the dropdown, the updated month should be based on the first calendar.

  1. Select a date in the second calendar.
Image
  1. Select a month from the dropdown (e.g., June 2025).
Image
  1. The calendar update.
Image

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Macbook
  • Browser: chrome
  • Version: v7.5.0

Additional context

@6mn12j 6mn12j changed the title Dropdown Updates First Calendar When Two Calendars Are Displayed When displaying two calendars, the behavior of month changes using the dropdown is inconsistent. Jan 31, 2025
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

No branches or pull requests

1 participant