Skip to content

Commit 5da476d

Browse files
author
farfromrefug
committed
fix(dialogs,ios): ensure we try to hide the correct view controller on hide
1 parent 98695df commit 5da476d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dialogs/dialogs.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export class AlertDialog {
302302
if (this.presentingController && !this.hiding) {
303303
this.hiding = true;
304304
return new Promise<void>((resolve) => {
305-
this.presentingController.dismissViewControllerAnimatedCompletion(true, () => {
305+
this.alertController.dismissViewControllerAnimatedCompletion(true, () => {
306306
if (this.alertController._resolveFunction) {
307307
this.alertController._resolveFunction(result);
308308
this.alertController._resolveFunction = null;

0 commit comments

Comments
 (0)