Skip to content

Commit

Permalink
fix(Assistant): ConversationBar wasn't resize when emptying it
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 21, 2024
1 parent 545aa3d commit c5541aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/assistant/Conversations/ConversationBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
})

Expand Down

0 comments on commit c5541aa

Please sign in to comment.