diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index f4af4e337b..6c6430191f 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