Keep dialogs and sheets open on an outside click - #1814
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | e50cb5e | Commit Preview URL Branch Preview URL |
Aug 28 2026, 08:17 AM |
Contributor
Cloudflare previewTorn down — the PR is closed. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | e50cb5e | Aug 28 2026, 08:18 AM |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1030
DialogContentandSheetContentonly prevented Radix's outside-interaction dismissal when the click landed in a portaled combobox or select popup, so any other outside click closed the surface and destroyed the form inside it. The default is now the opposite: an outside interaction keeps the surface open, while Escape and the close button still close it. A newdismissOnOutsideClickprop opts a surface back in, and the portaled-popup guard still applies when it does, so choosing a combobox option never dismisses.Call-site audit
Every
DialogContent,SheetContent, andCommandDialogin the repo, and the choice made for each.AlertDialogis not affected — Radix already blocks outside dismissal there.Opted in with
dismissOnOutsideClick(nothing to lose):packages/react/src/components/command.tsx(CommandDialog)command-palette.tsxneeds no change.packages/react/src/components/sidebar.tsx:170packages/react/src/components/remove-oauth-app-dialog.tsx:32packages/react/src/pages/org.tsx:450packages/react/src/pages/admin-users.tsx:673packages/react/src/pages/api-keys.tsx:503apps/cloud/src/web/components/support-slot.tsx:47apps/cloud/src/routes/app/billing_.plans.tsx:404apps/cloud/src/routes/app/billing_.plans.tsx:452Left on the new default (holds state a stray click would destroy):
packages/react/src/components/add-account-modal.tsx:2364packages/react/src/components/metadata-edit-sheet.tsx:109packages/react/src/components/metadata-edit-sheet.tsx:238packages/react/src/components/health-check-editor.tsx:476packages/react/src/pages/artifact-rename-dialog.tsx:78packages/react/src/pages/integrations.tsx:244packages/react/src/pages/api-keys.tsx:324packages/react/src/pages/api-keys.tsx:482packages/react/src/pages/org.tsx:517packages/plugins/onepassword/src/react/OnePasswordSettings.tsx:217packages/plugins/toolkits/src/page.tsx:548packages/plugins/toolkits/src/page.tsx:810apps/cloud/src/routes/app/org.tsx:154packages/react/src/components/add-custom-method-modal.tsxrenders no surface of its own; it composes into the add-account dialog.Simplified opt-out
add-account-modal.tsxpreviously passed a conditionalonInteractOutsidethat prevented dismissal only during an OAuth reconnect handoff. The new default covers every case, so the prop and its handler are gone.modal={false}andforceOverlaystay: they exist to free the mouse wheel for the portaled combobox popup, not to control dismissal. The stale comment about outside clicks closing the dialog is corrected.Verification
packages/reacttest suite: 43 files, 369 tests passed. Six of those are new, inpackages/react/src/lib/outside-dismiss.test.ts, covering the default, the opt-in, the portaled-popup exception, and that a plain outside click is blocked.typecheckclean inpackages/reactandapps/cloud(only pre-existing suggestions in untouched files).oxlint -c .oxlintrc.jsonc --deny-warningsclean on all changed files;format:checkandlint:changelog-stubspass.e2e/scenarios/health-checks-ui.test.tsalready covers the portaled-popup case by clicking a combobox option inside a modal; that guard is preserved, not relaxed. The suite has not been run on this branch.