fix: searchbox should collapse if query is not empty
This commit is contained in:
parent
d6d9cb57e4
commit
3be1bb2275
|
@ -61,7 +61,7 @@ export const SearchBox: React.FC<SearchBoxProps> = ({
|
|||
const [activeInput, setActiveInput] = useState(false)
|
||||
const stickyComponent = globalMode
|
||||
? 'results'
|
||||
: focused || !activeInput
|
||||
: query.length === 0 || !activeInput
|
||||
? 'root'
|
||||
: 'results'
|
||||
|
||||
|
|
Loading…
Reference in New Issue