diff --git a/src/components/ChatSidebar.tsx b/src/components/ChatSidebar.tsx index 208ebb1..ac98424 100644 --- a/src/components/ChatSidebar.tsx +++ b/src/components/ChatSidebar.tsx @@ -160,6 +160,7 @@ export function ChatSidebar({ showNewsRibbon = true }: ChatSidebarProps) { useFocusTrap(sidebarRef, { active: isMobileOpen, onEscape: () => setIsMobileOpen(false), + initialFocusRef: textareaRef, restoreFocusRef: mobileToggleRef, });