mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +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);
|
||||
}
|
||||
|
||||
getParent() : HTMLElement | et2_widget
|
||||
getParent() : Et2WidgetClass | et2_widget
|
||||
{
|
||||
let parentNode = this.parentNode;
|
||||
|
||||
@ -776,7 +776,7 @@ const Et2WidgetMixin = (superClass) =>
|
||||
return this._parent;
|
||||
}
|
||||
|
||||
return <HTMLElement>parentNode;
|
||||
return null;
|
||||
}
|
||||
|
||||
addChild(child : et2_widget | Et2WidgetClass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user