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(focusVisibleElement): set focus on custom appRootSelector #30218

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Feb 26, 2025

Issue number: internal


What is the current behavior?

The focusVisibleElement function does not take into account that a user might use a custom appRootSelector. If they do, the the setFocus function will throw an error that it does not exist leading to focus not being established on the elements.

This error can be seen when opening a ion-select with a modal interface.

Screenshot 2025-02-26 at 1 24 18 PM

What is the new behavior?

  • Created a new function to reuse the focus logic within ion-app and for the custom app root selector. This will make sure that there will be consistency between both if that logic needs to change in the future.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Copy link

vercel bot commented Feb 26, 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 Feb 27, 2025 0:36am

@github-actions github-actions bot added the package: core @ionic/core package label Feb 26, 2025
@thetaPC thetaPC marked this pull request as ready for review February 27, 2025 00:52
@thetaPC thetaPC requested a review from a team as a code owner February 27, 2025 00:52
@thetaPC thetaPC requested review from ShaneK, brandyscarney and JoaoFerreira-FrontEnd and removed request for ShaneK February 27, 2025 00:52
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