diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index b454b59f..af0258c1 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -82,6 +82,8 @@ export const SearchControl = ({ clusterRef }) => { onChange={(e) => setValue(e.target.value)} onFocus={() => { setHideSuggestions(false); + console.log(windowDimensions.width); + if(windowDimensions.width < 500) map.closePopup(); }} onBlur={() => hide()} />