mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 16:57:44 +01:00
fix(site): only show search placeholder if there aren't any results
This commit is contained in:
@@ -29,7 +29,7 @@ export default function useSearchPlaceholder(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
state.value = {
|
state.value = {
|
||||||
isNoResults: query in BRAND_STOPWORDS || (searchResults.length === 0 && query !== ''),
|
isNoResults: query in BRAND_STOPWORDS && searchResults.length === 0 && query !== '',
|
||||||
isBrand: query in BRAND_STOPWORDS,
|
isBrand: query in BRAND_STOPWORDS,
|
||||||
query: BRAND_STOPWORDS[query] ?? query,
|
query: BRAND_STOPWORDS[query] ?? query,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user