Skip to content

fix(datetime): navigating months in RTL works correctly - #29421

Merged
liamdebeasi merged 1 commit into
mainfrom
FW-6211
Apr 29, 2024
Merged

fix(datetime): navigating months in RTL works correctly#29421
liamdebeasi merged 1 commit into
mainfrom
FW-6211

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Apr 29, 2024

Copy link
Copy Markdown
Contributor

Issue number: resolves #29198


What is the current behavior?

In #27917 I failed to account for RTL. This caused the navigation with the arrow buttons to break because the scroll position was always < 2.

What is the new behavior?

  • Datetime now checks if the component is in RTL mode when creating the scrollLeft threshold.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@vercel

vercel Bot commented Apr 29, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 6:52pm

@github-actions github-actions Bot added the package: core @ionic/core package label Apr 29, 2024
@liamdebeasi
liamdebeasi marked this pull request as ready for review April 29, 2024 18:56
@liamdebeasi
liamdebeasi requested a review from a team as a code owner April 29, 2024 18:56

@sean-perkins sean-perkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gracias 🎉

Tested locally and works as expected.

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

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ion-datetime Month Navigation Fails in RTL Mode"

2 participants