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

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

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Apr 29, 2024

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

Copy link

vercel bot commented Apr 29, 2024

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
Copy link
Contributor

@sean-perkins sean-perkins left a comment

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