mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-24 07:08:12 +00:00
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…
x
Reference in New Issue
Block a user