Skip to content

Commit

Permalink
update: resizeTextarea
Browse files Browse the repository at this point in the history
  • Loading branch information
leedom92 committed Apr 7, 2023
1 parent 620b98f commit cb210d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
setTextareaStyle(calcTextareaHeight(dom, minRows, maxRows));
};

// only search prompts when user input is short
Expand Down

0 comments on commit cb210d8

Please sign in to comment.