From 455b0cd69629fd572c6c63074ecfd9c6f3b3852e Mon Sep 17 00:00:00 2001 From: Hash Brown Date: Sun, 5 Jan 2025 21:25:00 +0800 Subject: [PATCH] chore: chat app textarea auto focus (#12366) --- web/app/components/base/chat/chat/chat-input-area/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/components/base/chat/chat/chat-input-area/index.tsx b/web/app/components/base/chat/chat/chat-input-area/index.tsx index f83ecbf4a1..0d341d1b83 100644 --- a/web/app/components/base/chat/chat/chat-input-area/index.tsx +++ b/web/app/components/base/chat/chat/chat-input-area/index.tsx @@ -176,6 +176,7 @@ const ChatInputArea = ({ 'p-1 w-full leading-6 body-lg-regular text-text-tertiary outline-none', )} placeholder={t('common.chat.inputPlaceholder') || ''} + autoFocus autoSize={{ minRows: 1 }} onResize={handleTextareaResize} value={query}