fix(button): ie11 error when setting attribute in constructor

This commit is contained in:
Wessel Loth 2020-02-13 15:38:29 +01:00 committed by Thomas Allmer
parent 19c6961c2b
commit 166427871d

View file

@ -162,7 +162,7 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
this._buttonId = `button-${Math.random() this._buttonId = `button-${Math.random()
.toString(36) .toString(36)
.substr(2, 10)}`; .substr(2, 10)}`;
this.setAttribute('aria-labelledby', this._buttonId); this.updateComplete.then(() => this.setAttribute('aria-labelledby', this._buttonId));
} }
} }