Commit 392a01fd by 李伟康

fix(chat): 移除输入框自动聚焦功能

- 移除了文本输入框的 autoFocus 属性
- 防止页面加载时自动聚焦到输入框
- 改善了页面初始化时的焦点控制逻辑
1 parent 0d155a27
......@@ -90,7 +90,6 @@ const TextInput: React.FC<{
'body-lg-regular w-full resize-none bg-transparent p-1 leading-6 text-text-tertiary outline-none',
)}
placeholder={isResponding ? '正在生成回复...' : t('common.chat.inputPlaceholder') || ''}
autoFocus
maxRows={maxRow}
onResize={handleTextareaResize}
value={query}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!