From 793e127431e1ed67be8059cf525230d8957dfbe1 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Mon, 21 Oct 2024 16:21:45 +0200 Subject: [PATCH] fix(Assistant): ConversationBar wasn't resize when emptying it --- src/assistant/Conversations/ConversationBar.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assistant/Conversations/ConversationBar.jsx b/src/assistant/Conversations/ConversationBar.jsx index 341cfe31b..eb7222c12 100644 --- a/src/assistant/Conversations/ConversationBar.jsx +++ b/src/assistant/Conversations/ConversationBar.jsx @@ -25,6 +25,7 @@ const ConversationBar = ({ assistantStatus }) => { // to adjust input height for multiline when typing in it useEventListener(inputRef.current, 'input', () => { + inputRef.current.style.height = 'auto' // to resize input when emptying it inputRef.current.style.height = `${inputRef.current.scrollHeight}px` })