keep message focus

This commit is contained in:
Mckay Wrigley 2023-03-21 16:40:29 -06:00
parent b7803cf4ba
commit d14268b075
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export const ChatInput: FC<Props> = ({ onSend, messageIsStreaming, model }) => {
onSend({ role: "user", content });
setContent("");
if (textareaRef && textareaRef.current) {
if (window.innerWidth < 640 && textareaRef && textareaRef.current) {
textareaRef.current.blur();
}
};