Skip to content

Close field-free dialogs on outside click by default - #1843

Merged
RhysSullivan merged 2 commits into
mainfrom
modal-outside-dismiss
Aug 29, 2026
Merged

Close field-free dialogs on outside click by default#1843
RhysSullivan merged 2 commits into
mainfrom
modal-outside-dismiss

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

A dialog or sheet now decides from its contents whether a click outside closes it. While it holds a form field (inputs, textareas, contenteditable, or ARIA widget controls like select/combobox triggers, checkboxes, switches, radios), an outside click keeps it open, so a stray click cannot discard what the user typed. A surface with no fields closes on outside click.

dismissOnOutsideClick still overrides the detection in either direction; existing explicit call sites keep their behavior. The portaled combobox/select popup guard is unchanged, and AlertDialog is unaffected.

New e2e scenario dialog-outside-dismiss covers both sides on the API keys page: the create form and the one-time key reveal survive outside clicks, while the field-free revoke confirm dismisses without firing.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 29, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 46a4546 Commit Preview URL

Branch Preview URL
Aug 29 2026, 07:20 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 29, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 46a4546 Aug 29 2026, 07:22 AM

@github-actions

github-actions Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Aug 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1843

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1843

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1843

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1843

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1843

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1843

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1843

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1843

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1843

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1843

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1843

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1843

executor

npm i https://pkg.pr.new/executor@1843

commit: 46a4546

@RhysSullivan
RhysSullivan marked this pull request as ready for review August 29, 2026 07:23
@RhysSullivan
RhysSullivan merged commit 35dba11 into main Aug 29, 2026
44 checks passed
@RhysSullivan
RhysSullivan deleted the modal-outside-dismiss branch August 29, 2026 07:23
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