mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(angular): overlay.getTop can return undefined (#17802)
This commit is contained in:

committed by
Mike Hartington

parent
27168d938a
commit
439b10e10d
@ -20,7 +20,7 @@ export class OverlayBaseController<Opts, Overlay> {
|
||||
/**
|
||||
* Returns the top overlay.
|
||||
*/
|
||||
getTop(): Promise<Overlay> {
|
||||
getTop(): Promise<Overlay | undefined> {
|
||||
return proxyMethod(this.ctrl, this.doc, 'getTop');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user