diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 6f5fd8413..2f938c8a5 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -535,10 +535,11 @@ export function Chat(props: {}) { const [showPromptModal, setShowPromptModal] = useState(false); // Auto focus - useEffect(() => { - if (sidebarCollapse && isMobileScreen()) return; - inputRef.current?.focus(); - }, [sidebarCollapse]); + //useEffect(() => { + // if (isMobileScreen() && !sidebarCollapse) return; + // inputRef.current?.focus(); + //}, [sidebarCollapse]); + return (