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
{{ message }}
Repository navigation
Escape does not close modals after focus leaves dialog #3804
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
Escape does not close some modals after focus leaves the dialog, for example after clicking the backdrop or after an app token creation error re-renders the modal.
Reproduction Steps
Open the New folder modal.
Click the modal backdrop.
Press Escape.
Repeat with the app token modal after token creation fails with POST 500.
Expected Outcome
Escape closes the active modal.
Actual Outcome
Focus moves to the page body and Escape no longer closes the modal; only the close button works.
Activity