From a7e2612b283eae1cef8ca0668b9dd4664bc0f1c4 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 30 Jan 2024 21:18:12 +0100 Subject: [PATCH] fix some firefox mobile issue --- .../Map/Subcomponents/Controls/SearchControl.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index 7ca4f1b8..ea173ecf 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -18,8 +18,6 @@ import MarkerIconFactory from '../../../../Utils/MarkerIconFactory'; export const SearchControl = ({ clusterRef }) => { - const windowDimensions = useWindowDimensions(); - const [popupOpen, setPopupOpen] = useState(false); const [value, setValue] = useState(''); const [geoResults, setGeoResults] = useState>([]); @@ -35,14 +33,6 @@ export const SearchControl = ({ clusterRef }) => { const resetFilterTags = useResetFilterTags(); const filterTags = useFilterTags(); - useMapEvents({ - popupopen: () => { - setPopupOpen(true); - }, - popupclose: () => { - setPopupOpen(false); - } - }) useDebounce(() => { const searchGeo = async () => { @@ -74,7 +64,6 @@ export const SearchControl = ({ clusterRef }) => { const searchInput = useRef(null); return (<> - {!(windowDimensions.height < 500 && popupOpen && hideSuggestions) &&
{ }
}
- } + )