Skip to content

Conversation

ShaneK
Copy link
Member

@ShaneK ShaneK commented Sep 22, 2025

Issue number: resolves #30684


What is the current behavior?

Recently, we fixed some issues with aria-hidden in modals, unfortunately at this time we neglected modals that opt out of focus trapping. As a result, a lot of modals that disable focus trapping still have it happening and it doesn't get cleaned up properly on dismiss.

What is the new behavior?

We're now properly checking for and skipping focus traps on modals that do not want them.

Does this introduce a breaking change?

  • Yes
  • No

Other information

I created regression tests for Angular in this to prevent this from happening again. I initially tried to do this with core, but the issue doesn't seem to reproduce with core.

Current dev build:

 8.7.5-dev.11758652700.103435a3

@ShaneK ShaneK requested a review from a team as a code owner September 22, 2025 16:50
Copy link

vercel bot commented Sep 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ionic-framework Ready Ready Preview Comment Sep 24, 2025 7:20pm

@github-actions github-actions bot added the package: react @ionic/react package label Sep 23, 2025
Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

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

Looks good!

@ShaneK ShaneK added this pull request to the merge queue Sep 24, 2025
Merged via the queue into main with commit a40d957 Sep 24, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package package: core @ionic/core package package: react @ionic/react package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Invisible overlay behind sheet modal on 8.7.4
2 participants