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

[BUG] - International calendar unexpected behaviour when change month or year on Persion calendar #2960

Open
mahmood-kn opened this issue May 7, 2024 · 1 comment

Comments

@mahmood-kn
Copy link

NextUI Version

2.3.6

Describe the bug

I'm using international with Persian calendar but when I try to change the month or year the months get converted to English calendar

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

This is my code and you can check the problem by creating below component:

import {
  parseDate,
} from '@internationalized/date';

import { I18nProvider } from '@react-aria/i18n';
const Form = () => {
let [date, setDate] = useState(parseDate('2021-04-07'));
return (
 <I18nProvider locale='fa-IR-u-ca-persian'>
              <DatePicker
                showMonthAndYearPickers
                variant='bordered'
                className='max-w-md'
                value={date}
                onChange={setDate}
              />
            </I18nProvider>
)
}

Expected behavior

I expect that I can modify month and year in Persian calendar

Screenshots or Videos

Rec.0003.mp4

Operating System Version

Windows

Browser

Chrome

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