diff --git a/src/components/DocsLayout.tsx b/src/components/DocsLayout.tsx index 50ea2fde..2d0b2930 100644 --- a/src/components/DocsLayout.tsx +++ b/src/components/DocsLayout.tsx @@ -868,6 +868,9 @@ export function DocsLayout({ }} onPointerLeave={(e) => { if (e.pointerType === 'touch') return + // Keep sidebar open while a dropdown opened from inside it is active (e.g. FrameworkSelect, VersionSelect) + if (expandedMenuRef.current?.querySelector('[data-state="open"]')) + return if (window.innerWidth < 1280) { leaveTimer.current = setTimeout(() => { setShowLargeMenu(false)