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: escape closes only necessary elements #17052

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LoaderB0T
Copy link
Contributor

@LoaderB0T LoaderB0T commented Dec 13, 2024

Fixes #16955

This is a PR to fix the mentioned issue.
It reliably fixes the problems with panels other than dialogs. When multiple dialogs are opened, they still all close with escape if there is no active focus within one of the dialogs. If the activeElement is within one of the dialogs, only that dialog will be closed.

Open for ideas on how to solve the closing of all dialogs when no dialog is focussed, however not required to fix the issue at hand (panels closing also closing the dialog itself).

Hoping for reviews & merge :)

Copy link

vercel bot commented Dec 13, 2024

@LoaderB0T is attempting to deploy a commit to the primetek Team on Vercel.

A member of the Team first needs to authorize it.

Janik Schumacher and others added 2 commits December 17, 2024 15:54
@LoaderB0T LoaderB0T marked this pull request as ready for review December 17, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialog: Escape listener closes everything always
1 participant