| author | |
| committer | |
| log | feb286379c071dc70a948d0f0f14729b04d6777f |
| tree | 698ca02e88794ef7c3a2cee9771b69d6a0389716 |
| parent | cefe64158697f05e863b7347bc2bf797a264c78b |
Prevents Space from triggering the parent SidebarMenuSubButton's
navigation handler while typing in the inline rename input.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 files changed, 1 insertions(+), 0 deletions(-)
apps/web/src/components/Sidebar.tsx+1| ... | ... | @@ -970,6 +970,7 @@ export default function Sidebar() { |
| 970 | 970 | value={renamingTitle} |
| 971 | 971 | onChange={(e) => setRenamingTitle(e.target.value)} |
| 972 | 972 | onKeyDown={(e) => { |
| 973 | e.stopPropagation(); | |
| 973 | 974 | if (e.key === "Enter") { |
| 974 | 975 | e.preventDefault(); |
| 975 | 976 | renamingCommittedRef.current = true; |