Skip to content

fix(ui): resolve responsive interaction traps - #82

Draft
DIvanCode wants to merge 1 commit into
masterfrom
codex/issue-67-ux-cleanup
Draft

fix(ui): resolve responsive interaction traps#82
DIvanCode wants to merge 1 commit into
masterfrom
codex/issue-67-ux-cleanup

Conversation

@DIvanCode

Copy link
Copy Markdown
Owner

No description provided.

@DIvanCode DIvanCode self-assigned this Jul 25, 2026
@DIvanCode
DIvanCode marked this pull request as draft July 25, 2026 16:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7825cf54e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +61 to +64
if (event.key === "Escape") {
event.preventDefault();
event.stopPropagation();
onDismissRef.current();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Dismiss only the topmost nested modal on Escape

When one Modal opens another, as in the DuelConfigurationPicker delete confirmation rendered inside GroupPage's new-duel or tournament modal, focus is contained by both layer refs and every modal has its own document listener. Pressing Escape therefore invokes both onClose callbacks; stopPropagation() does not suppress other listeners registered on the same document node. Consequently, dismissing the delete confirmation also closes the underlying creation form and discards its state. Track the topmost layer or otherwise ensure only one modal handles the key.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant