From 6d53d0d3f8c4d42373f27820b36b36de8b7004ea Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 14 Jan 2024 13:34:39 +0100 Subject: [PATCH] optimized search control --- src/Components/Map/Subcomponents/Controls/SearchControl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index 060631d1..b1bb2d83 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -65,7 +65,6 @@ export const SearchControl = ({ clusterRef }) => { onBlur={async () => { setTimeout(() => { setHideSuggestions(true); - window.history.pushState({}, "", `/`) }, 200); }} /> {value.length > 0 && } @@ -76,6 +75,7 @@ export const SearchControl = ({ clusterRef }) => { {tagsResults.map(tag => (
{ addFilterTag(tag) + window.history.pushState({}, "", `/`) }}> #{capitalizeFirstLetter(tag.id)}