Skip to content

fix(utils): apply focus styles on iOS when using Tab with a hardware keyboard #30116

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Jan 7, 2025

Issue number: internal


What is the current behavior?

When using an external keyboard and tabbing on an iPad, the focus state is not visible until the Shift key is pressed. This happens because the iPad does not fire the keydown event when pressing Tab.

What is the new behavior?

The ion-focused class is now applied only when pointer events are not involved, instead of listening for keyboard events.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 8.6.3-dev.11751478001.1cb7436f

Copy link

vercel bot commented Jan 7, 2025

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 Jul 2, 2025 5:34pm

@github-actions github-actions bot removed package: angular @ionic/angular package package: vue @ionic/vue package labels Jul 2, 2025
@brandyscarney brandyscarney changed the title fix(utils): update focus utility to add focus states without keydown fix(utils): apply focus styles on iOS when using Tab with a hardware keyboard Jul 2, 2025
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.

1 participant