From 28cf401f2f5dc5caea94799fb3997b1173cf16c8 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 4 Sep 2023 22:32:08 +0200 Subject: [PATCH] fix popup closing whe marker leaves scrren, which causes trouble on mobile --- src/Components/Map/UtopiaMap.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Map/UtopiaMap.tsx b/src/Components/Map/UtopiaMap.tsx index 83c8f7c4..eba524cd 100644 --- a/src/Components/Map/UtopiaMap.tsx +++ b/src/Components/Map/UtopiaMap.tsx @@ -65,7 +65,7 @@ function UtopiaMap({ - + { React.Children.toArray(children).map((child) => React.isValidElement<{ setItemFormPopup: React.Dispatch>, itemFormPopup: ItemFormPopupProps | null }>(child) ? @@ -77,7 +77,7 @@ function UtopiaMap({ {selectNewItemPosition != null && -
+
Select {selectNewItemPosition.name} position!