From feb286379c071dc70a948d0f0f14729b04d6777f Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 2 Mar 2026 13:26:43 -0800 Subject: [PATCH] Stop keydown propagation on rename input Prevents Space from triggering the parent SidebarMenuSubButton's navigation handler while typing in the inline rename input. Co-Authored-By: Claude Opus 4.6 --- apps/web/src/components/Sidebar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index 57b64a1bf8641e40e83698163684b76932cb0c6b..cdd39ceb9d7468a892881deb4d5ac76ef6186a7f 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -970,6 +970,7 @@ export default function Sidebar() { value={renamingTitle} onChange={(e) => setRenamingTitle(e.target.value)} onKeyDown={(e) => { + e.stopPropagation(); if (e.key === "Enter") { e.preventDefault(); renamingCommittedRef.current = true; -- 2.54.0