From 5772cbf1d8bbd8f689f0a3a6224227a006578c35 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 30 Jan 2024 21:32:32 +0100 Subject: [PATCH] fix some firefox mobile issue --- src/Components/Map/Subcomponents/Controls/SearchControl.tsx | 2 ++ 1 file changed, 2 insertions(+) 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()} />