From df843b607ec0fb1114fe026c8c887a690a6c3dc1 Mon Sep 17 00:00:00 2001 From: Shawn Taylor Date: Wed, 15 Nov 2023 13:07:41 -0500 Subject: [PATCH] Adjust for known bug --- .../angular/standalone/src/providers/picker-controller.ts | 4 ++++ .../test/base/e2e/src/standalone/overlay-controllers.spec.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/angular/standalone/src/providers/picker-controller.ts b/packages/angular/standalone/src/providers/picker-controller.ts index 09e8804f13e..f3638ad6d47 100644 --- a/packages/angular/standalone/src/providers/picker-controller.ts +++ b/packages/angular/standalone/src/providers/picker-controller.ts @@ -2,6 +2,7 @@ import { Injectable } from '@angular/core'; import { OverlayBaseController } from '@ionic/angular/common'; import type { PickerOptions } from '@ionic/core/components'; import { pickerController } from '@ionic/core/components'; +import { defineCustomElement } from '@ionic/core/components/ion-picker.js'; @Injectable({ providedIn: 'root', @@ -9,5 +10,8 @@ import { pickerController } from '@ionic/core/components'; export class PickerController extends OverlayBaseController { constructor() { super(pickerController); + + // TODO: FW-5415 may remove the need for this + defineCustomElement(); } } diff --git a/packages/angular/test/base/e2e/src/standalone/overlay-controllers.spec.ts b/packages/angular/test/base/e2e/src/standalone/overlay-controllers.spec.ts index bc36dcf2142..e9ac5f08db9 100644 --- a/packages/angular/test/base/e2e/src/standalone/overlay-controllers.spec.ts +++ b/packages/angular/test/base/e2e/src/standalone/overlay-controllers.spec.ts @@ -1,7 +1,7 @@ describe('Overlay Controllers', () => { beforeEach(() => { cy.visit('/standalone/overlay-controllers'); - }) + }); it('should present a modal', () => { cy.get('button#open-modal').click(); @@ -20,4 +20,4 @@ describe('Overlay Controllers', () => { cy.get('ion-popover app-dialog-content').should('be.visible'); }); -}) +});