mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
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.
This commit is contained in:
parent
f5739355d6
commit
c687a0d8aa
@ -345,7 +345,7 @@ export function UtopiaMapInner({
|
||||
eventHandlers={{
|
||||
click: (e) => {
|
||||
if (selectNewItemPosition) {
|
||||
e.layer.closePopup()
|
||||
e.propagatedFrom.closePopup()
|
||||
setMapClicked({ position: e.latlng, setItemFormPopup: setPopupForm })
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user