From 81532cbb0446092b189a004934c853d53d862424 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 57b64a1bf8..cdd39ceb9d 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;