-
Notifications
You must be signed in to change notification settings - Fork 829
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
md-dialog: Escape key press does not close the dialog completely + navigation back on mobile not working #5313
md-dialog: Escape key press does not close the dialog completely + navigation back on mobile not working #5313
Comments
Underlying issue is https://bugs.chromium.org/p/chromium/issues/detail?id=1512224 Think I can add a patch though |
I think that It looks like the material-web/dialog/internal/dialog.ts Line 244 in 50a9ffa
|
The Chromium bug still breaks the ability to detect if a dialog was canceled by pressing the escape key vs calling Was there a breaking spec change where pressing the escape key closes a dialog without cancelation? |
Fixes #5313 PiperOrigin-RevId: 592368374
Yeah we changed the spec here: whatwg/html#9462 |
Related to #5313 PiperOrigin-RevId: 592368374
Got a patch in #5329 that'll fix it for now, but gonna leave this open to track addressing non-cancelable CloseWatcher anti-abuse gestures, such as the Android back button or pressing escape twice. |
Actually going to track in #5330 to avoid scope creep with this issue |
Fixes #5313 PiperOrigin-RevId: 592368374
Fixes #5313 PiperOrigin-RevId: 592368374
What is affected?
Component
Description
On escape key press the 'cancel' event is not emitting + backdrop layer is still visible
screen-capture
There is problem also with browser history back - backdrop layer is still visible (as on native browser )
Reproduction
simple md-dialog use
Workaround
.
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
1.1.1
Browser/OS/Node environment
Browser: Chrome 120.0.6099.110
Windows 11
Node version: 18.17.1
npm version: 9.6.7
The text was updated successfully, but these errors were encountered: