Skip to content

fix(ui-a11y-utils): don't dismiss a region for a click it didn't see start - #2840

Open
aaronshaf wants to merge 1 commit into
masterfrom
fix/ui-a11y-utils-stacked-dialog-close
Open

aaronshaf wants to merge 1 commit into
masterfrom
fix/ui-a11y-utils-stacked-dialog-close

Conversation

@aaronshaf

@aaronshaf aaronshaf commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Test Plan

  • Open a Modal, then a second Modal from a button inside it. Click the close button in the second Modal and check the first stays open.
  • Open a Select inside a Modal, click elsewhere inside the Modal and check the Modal stays open.
  • Click the Mask of a lone Modal and check it still closes.

…start

A dialog stacked on a Modal deactivates the Modal's FocusRegion. Closing the top dialog from a
button reactivates the region before the click reaches the document. #2753 judged that click by
its event path, found the target outside the Modal and dismissed the Modal too.

A region now ignores a click whose mousedown it didn't see. A click inside a Modal after a Select
inside it closes still doesn't dismiss. With a Select open, a click outside the Modal now closes
the Select first and the Modal on the next click.
@aaronshaf
aaronshaf force-pushed the fix/ui-a11y-utils-stacked-dialog-close branch from 91acdd0 to 6936b57 Compare December 1, 2026 17:54
@aaronshaf aaronshaf self-assigned this Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2840/

Built to branch gh-pages at 2026-12-01 17:59 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@matyasf
matyasf requested review from balzss and matyasf December 2, 2026 12:43

This branch has not been deployed

No deployments
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.

2 participants