mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +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