mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
fix JS error, if we have no image and no _iconNode
This commit is contained in:
parent
c3673b1126
commit
bd555ec4d1
@ -283,8 +283,12 @@ export class Et2Button extends Et2InputWidget(SlButton)
|
||||
const image = document.createElement("et2-image");
|
||||
image.slot = "prefix";
|
||||
this.prepend(image);
|
||||
image.src = this.__image;
|
||||
}
|
||||
else if (this._iconNode)
|
||||
{
|
||||
this._iconNode.src = this.__image;
|
||||
}
|
||||
this._iconNode.src = this.__image;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user