From c687a0d8aa44dec0a9edc44ebcf51a18d8c6a932 Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 3 Dec 2025 21:28:59 +0100 Subject: [PATCH] linting: replace deprecated Leaflet e.layer with e.propagatedFrom The property on LeafletEvent is deprecated in Leaflet 1.9.x and will be removed in Leaflet 2.0. Use instead, which is functionally identical. --- lib/src/Components/Map/UtopiaMapInner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Components/Map/UtopiaMapInner.tsx b/lib/src/Components/Map/UtopiaMapInner.tsx index cea27b04..9f75dcf3 100644 --- a/lib/src/Components/Map/UtopiaMapInner.tsx +++ b/lib/src/Components/Map/UtopiaMapInner.tsx @@ -345,7 +345,7 @@ export function UtopiaMapInner({ eventHandlers={{ click: (e) => { if (selectNewItemPosition) { - e.layer.closePopup() + e.propagatedFrom.closePopup() setMapClicked({ position: e.latlng, setItemFormPopup: setPopupForm }) } },