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 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 4.6 committed 2026-03-02 13:26:43 -08:00
1 parent 1094f679d9
commit 81532cbb04
1 file changed
+1
+1
View File
@@ -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;