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

@ -100,7 +100,7 @@ export class Picker implements ComponentInterface, OverlayInterface {
*/
@Event({ eventName: 'ionPickerDidDismiss' }) didDismiss!: EventEmitter<OverlayEventDetail>;
constructor() {
connectedCallback() {
prepareOverlay(this.el);
}