diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index 701cb41347..431298c8c0 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -641,6 +641,9 @@ const Et2WidgetMixin = (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