diff --git a/src/components/sidebar-menu.tsx b/src/components/sidebar-menu.tsx index d5de9b45e7..641412c208 100644 --- a/src/components/sidebar-menu.tsx +++ b/src/components/sidebar-menu.tsx @@ -149,6 +149,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { }, []); useEffect(() => { + if (sidebarOpen) containerRef.current?.querySelector('a')?.focus(); setTimeout(() => setSidebarVisible(sidebarOpen), sidebarOpen ? 0 : 150); }, [sidebarOpen]); @@ -183,8 +184,9 @@ const SidebarMenu: React.FC = (): JSX.Element | null => {