fix: feature edit status not disabled on hide (#2534)

This commit is contained in:
Yohan Boniface 2025-03-03 15:34:49 +01:00 committed by GitHub
commit 9e791a0ab4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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