Closed Sammy-coding closed 2 months ago
Even after using the nextuiprovider, the issue still persist. The calendar still switches after selecting the year. It switches from the hijri calendar system to gregorian. It doesn't stay at hijri month and year. I have pushed the changes you said i should do so you can also see for yourself
Hi @wingkwong Is there a fix for this issue
@Sammy-coding I'm working on it.
NextUI Version
2.0.6 next-ui-org/date-picker
Describe the bug
When the locale is ar-SA, the calendar system that shows up is hijri which is islamic-umalqura but it switches on selecting month and year (in the showMonthAndYearPickers) to gregorian calendar system.
Your Example Website or App
https://github.com/Sammy-coding/calendar
Steps to Reproduce the Bug or Issue
click on the showMonthAndYearPickers Observe the year and month before selection then Select month Select Year The month and year changes
Expected behavior
As a user, i am expecting that the calendar system stays hijri which is islamic-umalqura but it changes back to gregorian.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome