mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Fix widget.egw() returning null in some cases when widget parent was not completely in widget tree
This commit is contained in:
parent
7fcf6f1423
commit
fa707f0627
@ -766,7 +766,7 @@ const Et2WidgetMixin = (superClass) =>
|
|||||||
this._parent.addChild(this);
|
this._parent.addChild(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
getParent() : HTMLElement | et2_widget
|
getParent() : Et2WidgetClass | et2_widget
|
||||||
{
|
{
|
||||||
let parentNode = this.parentNode;
|
let parentNode = this.parentNode;
|
||||||
|
|
||||||
@ -776,7 +776,7 @@ const Et2WidgetMixin = (superClass) =>
|
|||||||
return this._parent;
|
return this._parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <HTMLElement>parentNode;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
addChild(child : et2_widget | Et2WidgetClass)
|
addChild(child : et2_widget | Et2WidgetClass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user