fix tree doubles when you close and reopen admin tab, or any other tab which moves web-components into the sidebox menu

This commit is contained in:
ralf 2024-04-05 17:23:32 +02:00
parent 6e69f35fdc
commit fc1d641093

View File

@ -641,6 +641,9 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
delete this._mgrs[key];
}
}
// if widget exists DOM-wise outside the parent, we need to explicitly remove it
if (this._parent_node) this.remove();
}
isInTree() : boolean