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 [activeInput, setActiveInput] = useState(false)
|
||||||
const stickyComponent = globalMode
|
const stickyComponent = globalMode
|
||||||
? 'results'
|
? 'results'
|
||||||
: focused || !activeInput
|
: query.length === 0 || !activeInput
|
||||||
? 'root'
|
? 'root'
|
||||||
: 'results'
|
: 'results'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue