mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 16:38:39 +01:00
- onclick is fine being an attribute
- Avoid error when calling loadingFinished on a webComponent and the parent does not give/have a DOM node
This commit is contained in:
parent
e6ecdd1b25
commit
f00e4fb708
@ -69,9 +69,9 @@ export const Et2Widget = <T extends Constructor<LitElement>>(superClass : T) =>
|
||||
|
||||
// Defined in parent hierarchy
|
||||
//label: {type: String},
|
||||
|
||||
onclick: {
|
||||
type: Function,
|
||||
attribute: false
|
||||
type: Function
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -444,7 +444,7 @@ export const Et2Widget = <T extends Constructor<LitElement>>(superClass : T) =>
|
||||
* rest themselves with their normal lifecycle (especially connectedCallback(), which is kind
|
||||
* of the equivalent of doLoadingFinished()
|
||||
*/
|
||||
if(this.getParent() instanceof et2_widget)
|
||||
if(this.getParent() instanceof et2_widget && this.getParent().getDOMNode(this))
|
||||
{
|
||||
this.getParent().getDOMNode(this).append(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user