From 02b5bf27bbfa98574733367e2ae9538ad1aad8a6 Mon Sep 17 00:00:00 2001 From: Michael Suchacz <203725896+ibetitsmike@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:37:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20prevent=20new=20workspace?= =?UTF-8?q?=20modal=20from=20closing=20on=20outside=20click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The modal was closing when clicking anywhere on the overlay (dark background). This was not the expected behavior - users should only be able to close the modal via: - Clicking the Cancel button - Clicking Create Workspace after creation - Pressing Escape key Removed onClick handler from ModalOverlay and stopPropagation from ModalContent to prevent accidental modal dismissal. Generated with `cmux` --- src/components/NewWorkspaceModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NewWorkspaceModal.tsx b/src/components/NewWorkspaceModal.tsx index ec2eb39940..4f88702939 100644 --- a/src/components/NewWorkspaceModal.tsx +++ b/src/components/NewWorkspaceModal.tsx @@ -201,8 +201,8 @@ const NewWorkspaceModal: React.FC = ({ const projectName = projectPath.split("/").pop() ?? projectPath.split("\\").pop() ?? "project"; return ( - - e.stopPropagation()}> + +

New Workspace

Create a new workspace for {projectName}