Skip to content

Escape does not close modals after focus leaves dialog #3804

Closed

Description

@AlexAndBear

Initial Checklist

  • 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

  1. Open the New folder modal.
  2. Click the modal backdrop.
  3. Press Escape.
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions