You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the dialog is opened, if the user does not click anywhere else on the screen and press the Escape key the dialog is closed but the gray overlay remains.
Steps to reproduce
Navigate to one of the dialog samples such as this one.
Open the dialog by clicking the "Show Dialog" button.
Without clicking anywhere else or interacting with the dialog, press the Escape key.
Result
The dialog itself closes, but a gray overlay remains on the screen, indicating the dialog close action is not fully completed.
Expected result
The dialog closes and the overlay is removed, returning to the normal view.
Attachments
None
The text was updated successfully, but these errors were encountered:
Alright, it seems this issue runs deeper than I initially thought.
I still can't reproduce it on my end with these browser builds: Edge Version 122.0.2325.0 (Official build) dev (64-bit) Chrome Version 120.0.6099.225 (Official Build) (64-bit) Firefox 123.0a1 (2024-01-17) (64-bit)
I guess this was "regressed" in Chrome for some time during the end of last year but seems to be reverted at least in the version I tested with. I guess the version of Edge you use in your showcase is one that has the new behavior.
I'll mark it as a 3rd party issue, since there is no straightforward fix. Firefox and Safari have not yet implemented the proposed API. Attaching a close handler is doable but then there will be behavioral changes in the component in the case when a user opens it and then immediately presses Esc (events not firing correctly, keepOpenOnEscape not working).
I'll set this in review and discuss with the rest of the team possible solutions.
Description
When the dialog is opened, if the user does not click anywhere else on the screen and press the Escape key the dialog is closed but the gray overlay remains.
Steps to reproduce
Result
The dialog itself closes, but a gray overlay remains on the screen, indicating the dialog close action is not fully completed.
Expected result
The dialog closes and the overlay is removed, returning to the normal view.
Attachments
None
The text was updated successfully, but these errors were encountered: