DateRangePicker days change automatically when updating year in Thai Calendar
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
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:
```js
```
### 🖥️ 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.
https://github.com/adobe/react-spectrum/assets/8845603/ec587f02-6e7b-40a4-9d3b-c896cefecd9e
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.