remove elt from screen on dispose

This commit is contained in:
meganrogge
2022-02-08 12:26:19 -06:00
parent 10d2e66137
commit 3299315822
@@ -101,6 +101,7 @@ class Decoration extends Disposable implements IDecoration {
if (this.isDisposed) {
return;
}
this._screenElement.removeChild(this.element);
this.isDisposed = true;
this._marker.dispose();
// Emit before super.dispose such that dispose listeners get a change to react