fix(angular): overlay not found

fixes #15349
This commit is contained in:
Manu Mtz.-Almeida
2018-08-29 01:13:19 +02:00
parent 57d2f578aa
commit 8dfc52f63d
10 changed files with 17 additions and 17 deletions

View File

@ -31,7 +31,7 @@ export class PickerController implements OverlayController {
* Get the most recently opened picker overlay.
*/
@Method()
async getTop(): Promise<HTMLIonPickerElement> {
async getTop(): Promise<HTMLIonPickerElement | undefined> {
return getOverlay(this.doc, 'ion-picker') as HTMLIonPickerElement;
}
}