From e3fb23487f541102c6d21269802111155771d7e9 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Tue, 22 Oct 2024 10:42:38 +0200 Subject: [PATCH] fix(Assistant): SearchBar wasn't resize when emptying it --- src/assistant/Search/SearchBarMobile.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assistant/Search/SearchBarMobile.jsx b/src/assistant/Search/SearchBarMobile.jsx index 0c0c4d724..e69f3989d 100644 --- a/src/assistant/Search/SearchBarMobile.jsx +++ b/src/assistant/Search/SearchBarMobile.jsx @@ -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` })