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

DateRangePicker days change automatically when updating year in Thai Calendar #6536

Open
yuradmytriev opened this issue Jun 12, 2024 · 1 comment

Comments

@yuradmytriev
Copy link

yuradmytriev commented Jun 12, 2024

When using the DateRangePicker component with the Thai calendar (th-u-ca-buddhist locale), the days change automatically when updating the year. This behavior is unexpected and leads to incorrect date selections.

🤔 Expected Behavior?

The selected days should remain consistent when updating the year.

😯 Current Behavior

The selected days change automatically when the year is updated.

💁 Possible Solution

🔦 Context

This issue is reproducible only when the Provider has the th-u-ca-buddhist locale set:

<Provider
  locale={"th-u-ca-buddhist"}
  colorScheme="light"
  theme={defaultTheme}
>
  <DateRangePicker />
</Provider>

🖥️ Steps to Reproduce

Steps to Reproduce:

  • Set the locale to th-u-ca-buddhist in the Provider.
  • Open the DateRangePicker component.
  • Select a date range.
  • Update the year in the calendar.
Screen.Recording.2024-06-12.at.09.13.52.mov

Version

3.34.1

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

@yuradmytriev yuradmytriev changed the title DateRangePicker Days Change Automatically When Updating Year in Thai Calendar DateRangePicker days change automatically when updating year in Thai Calendar Jun 12, 2024
@LFDanLu
Copy link
Member

LFDanLu commented Jun 12, 2024

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

No branches or pull requests

2 participants