Yidadaa 1 year ago
parent
commit
06268543d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -616,7 +616,7 @@ export function Chat() {
 
   const location = useLocation();
   const isChat = location.pathname === Path.Chat;
-  const autoFocus = isChat; // only focus in chat page
+  const autoFocus = !isMobileScreen || isChat; // only focus in chat page
 
   return (
     <div className={styles.chat} key={session.id}>