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:
1 parent
1094f679d9
commit
81532cbb04
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user