From 436c083744426f4a609f437a60acff41062fd8e7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 3 Mar 2025 15:09:34 +0100 Subject: [PATCH] fix: feature edit status not disabled on hide --- umap/static/umap/js/modules/rendering/ui.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/umap/static/umap/js/modules/rendering/ui.js b/umap/static/umap/js/modules/rendering/ui.js index cd23ee31..4a3d584f 100644 --- a/umap/static/umap/js/modules/rendering/ui.js +++ b/umap/static/umap/js/modules/rendering/ui.js @@ -29,11 +29,9 @@ const FeatureMixin = { onRemove: function (map) { this.parentClass.prototype.onRemove.call(this, map) - if (map.editedFeature === this.feature) { + if (map._umap.editedFeature === this.feature) { this.feature.endEdit() - if (map.editedFeature === this.feature) { - map.editPanel.close() - } + map._umap.editPanel.close() } },