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

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