From 585149fa94bf6b671d47d25becfe3e6fcbb5ca83 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Sun, 22 Mar 2026 01:40:57 -0400 Subject: [PATCH] fix: drawer stays open when moving mouse from rail to drawer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove onMouseLeave from individual rail items — only the outer wrapper handles close. Items only handle onMouseEnter to switch which drawer is shown. Prevents premature drawer dismissal. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/layout/Sidebar.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 527bf6c2..bb6184fc 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -246,13 +246,11 @@ export function Sidebar() { key={key} className="relative w-full" onMouseEnter={() => hasChildren && !sidebarPinned ? openFlyout(key) : undefined} - onMouseLeave={() => hasChildren && !sidebarPinned ? closeFlyout() : undefined} > prefetchForRoute(item.href)} onFocus={() => hasChildren && !sidebarPinned ? openFlyout(key) : undefined} - onBlur={() => hasChildren && !sidebarPinned ? closeFlyout() : undefined} className={cn( 'group relative flex flex-col items-center justify-center rounded-lg px-1 py-2 transition-all duration-150', active