mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: feature edit status not disabled on hide (#2534)
This commit is contained in:
commit
9e791a0ab4
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue