diff --git a/web/chat/chat-input-text-area.react.js b/web/chat/chat-input-text-area.react.js --- a/web/chat/chat-input-text-area.react.js +++ b/web/chat/chat-input-text-area.react.js @@ -60,9 +60,13 @@ }, [onChangePosition]); React.useEffect(() => { - updateHeight(); focusAndUpdateText(); // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); + + React.useEffect(() => { + updateHeight(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentText]); const onKeyDown = (event: SyntheticKeyboardEvent) => {