fix: textarea not resizing back after clearing long input (#7609) (#7632)

* fix: textarea not resizing back after clearing long input (#7609)

* fix: text area auto size only when not dragged
This commit is contained in:
Yiyang Suen 2025-06-30 00:01:28 +08:00 committed by GitHub
parent 8f64c5ab6a
commit 218dcc2229
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -788,6 +788,7 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic, topic }) =
variant="borderless"
spellCheck={enableSpellCheck}
rows={2}
autoSize={textareaHeight ? false : { minRows: 2, maxRows: 20 }}
ref={textareaRef}
style={{
fontSize,