-
Notifications
You must be signed in to change notification settings - Fork 537
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
AutoComplete, when in dialog, intercepts escape keypresses and click outside #3003
Comments
cc @stephanieg0 who noticed this behavior |
Looks like this also impacts "click outside to close behavior" |
Just adding this here for visibility. https://github.com/github/github/pull/263278/commits/08caa7ce06659b9d8ea15c8c420b4338a753f0d7 |
@mperrotti Here's the original ticket. Thanks for looking into it! |
Description
see #2995 for some setup
When Autocomplete is used inside a dialog,
Escape
to close the dialog fails - seemingly because the AutoComplete overlay intercepts these keypresses before they get tot he containing dialog - even when the autocomplete is not currently focuses (so the overlay itself is not visible)Steps to reproduce
Autocomplete in a dialog, rendered in a deferred way to ensure that it orders ontop of the dialog content.
Attempt to close the dialog with escape - note the dialog is not closeable, and the handler is never called
Version
v35.20.0
Browser
No response
The text was updated successfully, but these errors were encountered: