diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index dc0f3d91..7ca4f1b8 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -36,9 +36,7 @@ export const SearchControl = ({ clusterRef }) => { const filterTags = useFilterTags(); useMapEvents({ - popupopen: (e) => { - console.log(e); - + popupopen: () => { setPopupOpen(true); }, popupclose: () => { @@ -76,7 +74,7 @@ export const SearchControl = ({ clusterRef }) => { const searchInput = useRef(null); return (<> - {!(windowDimensions.height < 500 && popupOpen) && + {!(windowDimensions.height < 500 && popupOpen && hideSuggestions) &&