mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
Avoid errors that happen if you try to remove a non-element child from a webComponent
This commit is contained in:
parent
d438b4e355
commit
1a8c1c2d35
@ -296,7 +296,7 @@ export class et2_widget extends ClassWithAttributes
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove this element from the parent, if it exists
|
// Remove this element from the parent, if it exists
|
||||||
if (typeof this._parent != "undefined" && this._parent !== null)
|
if(typeof this._parent != "undefined" && this._parent !== null && this._parent instanceof et2_widget)
|
||||||
{
|
{
|
||||||
this._parent.removeChild(this);
|
this._parent.removeChild(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user