Skip to content

Commit 1ba94f6

Browse files
committed
fix(dialogs): ios corner case fix
1 parent 7bd49dc commit 1ba94f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dialogs/dialogs.ios.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,17 @@ export class AlertDialog {
284284
this.presentingController = showUIAlertController(this.alertController, this.options);
285285
}
286286
}
287+
hiding = false;
287288
async hide() {
288-
if (this.presentingController) {
289+
if (this.presentingController && !this.hiding) {
290+
this.hiding = true;
289291
return new Promise<void>((resolve) => {
290292
this.presentingController.dismissViewControllerAnimatedCompletion(true, () => {
291293
resolve?.();
292294
this.alertController.clear();
293295
this.presentingController = null;
294296
this.alertController = null;
297+
this.hiding = false;
295298
});
296299
});
297300
}

0 commit comments

Comments
 (0)