You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here’s a clear and concise description of your issue in English for the GitHub issue tracker:
Issue:
In the NextUI Calendar component, when the language/locale is set to Persian (fa), the behavior of the nextButton and prevButton is reversed. The "Next" button navigates to the previous month, and the "Previous" button navigates to the next month. This issue seems to be related to the RTL (right-to-left) layout handling in Persian calendars.
Expected Behavior:
The nextButton should navigate to the next month, and the prevButton should navigate to the previous month, regardless of the locale or direction (RTL/LTR).
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Steps to Reproduce the Bug or Issue:
Set the locale of the Calendar component to fa (Persian).
Render the Calendar in an RTL (right-to-left) layout.
Attempt to navigate to the next or previous month using the nextButton and prevButton.
Observe that the nextButton navigates to the previous month and the prevButton navigates to the next month.
This reversed behavior occurs specifically when the locale is set to Persian.
Expected behavior
Expected Behavior:
The nextButton should navigate to the next month, and the prevButton should navigate to the previous month, regardless of the locale or the RTL/LTR layout. This behavior should be consistent for all supported languages and layouts.
Screenshots or Videos
No response
Operating System Version
windows
Browser
Chrome
The text was updated successfully, but these errors were encountered:
In the fa-IR locale, the behavior of the calendar navigation buttons should be as follows:
The left arrow button must navigate to the previous month.
The right arrow button must navigate to the next month.
This is the standard behavior in Persian-language calendars. Currently, the behavior is reversed, which causes confusion for users.
NextUI Version
^2.6.11
Describe the bug
Here’s a clear and concise description of your issue in English for the GitHub issue tracker:
Issue:
In the NextUI Calendar component, when the language/locale is set to Persian (fa), the behavior of the nextButton and prevButton is reversed. The "Next" button navigates to the previous month, and the "Previous" button navigates to the next month. This issue seems to be related to the RTL (right-to-left) layout handling in Persian calendars.
Expected Behavior:
The nextButton should navigate to the next month, and the prevButton should navigate to the previous month, regardless of the locale or direction (RTL/LTR).
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Steps to Reproduce the Bug or Issue:
locale
of theCalendar
component tofa
(Persian).Calendar
in an RTL (right-to-left) layout.nextButton
andprevButton
.nextButton
navigates to the previous month and theprevButton
navigates to the next month.This reversed behavior occurs specifically when the locale is set to Persian.
Expected behavior
Expected Behavior:
The
nextButton
should navigate to the next month, and theprevButton
should navigate to the previous month, regardless of the locale or the RTL/LTR layout. This behavior should be consistent for all supported languages and layouts.Screenshots or Videos
No response
Operating System Version
windows
Browser
Chrome
The text was updated successfully, but these errors were encountered: