fix: remove from dom
This commit is contained in:
parent
12cf8b2eea
commit
d26d777b79
|
@ -68,7 +68,8 @@ export default () => class DomNode extends decorate(Trait) {
|
|||
}
|
||||
|
||||
destroy() {
|
||||
this.removeFromDom();
|
||||
super.parentNode?.removeChild(this.entity.node);
|
||||
super.parentNode = null;
|
||||
this.$$styleTicker.off('tick', this.tickStyle);
|
||||
super.destroy();
|
||||
}
|
||||
|
@ -135,7 +136,6 @@ export default () => class DomNode extends decorate(Trait) {
|
|||
}
|
||||
|
||||
removeFromDom() {
|
||||
super.parentNode?.removeChild(this.entity.node);
|
||||
super.parentNode = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user