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
This commit is contained in:
parent
ea00d4fc32
commit
436c083744
1 changed files with 2 additions and 4 deletions
|
@ -29,11 +29,9 @@ const FeatureMixin = {
|
||||||
|
|
||||||
onRemove: function (map) {
|
onRemove: function (map) {
|
||||||
this.parentClass.prototype.onRemove.call(this, map)
|
this.parentClass.prototype.onRemove.call(this, map)
|
||||||
if (map.editedFeature === this.feature) {
|
if (map._umap.editedFeature === this.feature) {
|
||||||
this.feature.endEdit()
|
this.feature.endEdit()
|
||||||
if (map.editedFeature === this.feature) {
|
map._umap.editPanel.close()
|
||||||
map.editPanel.close()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue