From 06268543d04660dd79bbfba2574c10b8f29b4ed1 Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Wed, 3 May 2023 16:24:25 +0800 Subject: [PATCH] fixup --- app/components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index bae9c5ba2..4173fc3ac 100644 --- a/app/components/chat.tsx +++ b/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 (