fix(button): ie11 error when setting attribute in constructor
This commit is contained in:
parent
19c6961c2b
commit
166427871d
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
|
|||
this._buttonId = `button-${Math.random()
|
||||
.toString(36)
|
||||
.substr(2, 10)}`;
|
||||
this.setAttribute('aria-labelledby', this._buttonId);
|
||||
this.updateComplete.then(() => this.setAttribute('aria-labelledby', this._buttonId));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue