mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 23:57:32 +00:00
Merge pull request #11398 from strapi/search-query-fix
QA/ Search query fix
This commit is contained in:
commit
27ec1d268b
@ -58,6 +58,12 @@ const Search = ({ label, trackedEvent }) => {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [value]);
|
||||
|
||||
useEffect(() => {
|
||||
if (value && !isOpen) {
|
||||
setIsOpen(true);
|
||||
}
|
||||
}, [value, isOpen]);
|
||||
|
||||
if (isOpen) {
|
||||
return (
|
||||
<div ref={wrapperRef}>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user