fix: feature edit status not disabled on hide

This commit is contained in:
Yohan Boniface 2025-03-03 15:09:34 +01:00
parent ea00d4fc32
commit 436c083744

View file

@ -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()
}
},