@ -392,9 +392,7 @@ export function Chat(props: {
const dom = inputRef.current;
if (!dom) return;
const { minRows, maxRows } = props.autoSize;
setTimeout(() => {
setTextareaStyle(calcTextareaHeight(dom, minRows, maxRows));
}, 50);
};
// only search prompts when user input is short