Skip to content

Conversation

@JammingBen
Copy link
Contributor

Prevents resources from getting deselected when closing modals. The ESC key should only close the modal in that case.

This also fixes an issue where the resource conflict dialog would not get focused again after closing it via ESC.

fixes #777

Prevents resources from getting deselected when closing modals. The ESC key should only close the modal in that case.

This also fixes an issue where the resource conflict dialog would not get focused again after closing it via ESC.
@JammingBen JammingBen self-assigned this Aug 5, 2025
Copilot AI review requested due to automatic review settings August 5, 2025 11:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where pressing the ESC key in a modal would unintentionally deselect resources in addition to closing the modal. The change prevents event bubbling by adding the .stop modifier to the ESC keydown handler.

  • Adds .stop modifier to prevent ESC key events from bubbling up to parent components

@JammingBen JammingBen merged commit 6239cb7 into main Aug 5, 2025
30 checks passed
@JammingBen JammingBen deleted the fix/esc-deselect-in-modals branch August 5, 2025 13:01
@openclouders openclouders mentioned this pull request Aug 5, 2025
1 task
openclouders pushed a commit that referenced this pull request Aug 5, 2025
fix: resource deselect when clicking esc in a modal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modal missing focus management by multi file handling

3 participants