From d14268b0758b615022b44327814e6f08b2c780b2 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Tue, 21 Mar 2023 16:40:29 -0600 Subject: [PATCH] keep message focus --- components/Chat/ChatInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx index 7993fef..2a5d999 100644 --- a/components/Chat/ChatInput.tsx +++ b/components/Chat/ChatInput.tsx @@ -39,7 +39,7 @@ export const ChatInput: FC = ({ onSend, messageIsStreaming, model }) => { onSend({ role: "user", content }); setContent(""); - if (textareaRef && textareaRef.current) { + if (window.innerWidth < 640 && textareaRef && textareaRef.current) { textareaRef.current.blur(); } };