forked from XiaoMo/ChatGPT-Next-Web
update: resizeTextarea
This commit is contained in:
parent
620b98fe6a
commit
cb210d82e1
@ -392,9 +392,7 @@ export function Chat(props: {
|
|||||||
const dom = inputRef.current;
|
const dom = inputRef.current;
|
||||||
if (!dom) return;
|
if (!dom) return;
|
||||||
const { minRows, maxRows } = props.autoSize;
|
const { minRows, maxRows } = props.autoSize;
|
||||||
setTimeout(() => {
|
setTextareaStyle(calcTextareaHeight(dom, minRows, maxRows));
|
||||||
setTextareaStyle(calcTextareaHeight(dom, minRows, maxRows));
|
|
||||||
}, 50);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// only search prompts when user input is short
|
// only search prompts when user input is short
|
||||||
|
Loading…
Reference in New Issue
Block a user