Et2Button: fix unable to clear image once set

It would always show a broken image instead.
This commit is contained in:
nathan 2022-06-06 13:26:44 -06:00
parent 6ae098db93
commit ef0a549d1c

View File

@ -242,7 +242,7 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton))
return '';
}
this._iconNode.src = this.__image;
this._iconNode.src = this.__image || "";
if(!this.label)
{
this._iconNode.classList.add('imageOnly');