fix(overlays): move prepareOverlay to connectedCallback

For custom elements builds, overlays cannot use hasAttribute() in the constructor, so moving it to connectedCallback instead.
This commit is contained in:
Adam Bradley
2020-07-21 13:07:54 -05:00
committed by GitHub
parent f4a08b7ed4
commit 79518468dd
8 changed files with 25 additions and 20 deletions

View File

@ -130,7 +130,7 @@ export class Modal implements ComponentInterface, OverlayInterface {
}
}
constructor() {
connectedCallback() {
prepareOverlay(this.el);
}