Skip to content

Commit

Permalink
fix(Assistant): SearchBar wasn't resize when emptying it
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 22, 2024
1 parent 1863169 commit e3fb234
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/assistant/Search/SearchBarMobile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const SearchBarMobile = ({ value, onClear, onChange }) => {

// 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 e3fb234

Please sign in to comment.