From 3595818a2df035d7406a3a757a75c82315e69e47 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 30 Jan 2024 20:44:37 +0100 Subject: [PATCH] fix some firefox mobile issue --- src/Components/Map/Subcomponents/Controls/SearchControl.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) &&