We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd49dc commit 1ba94f6Copy full SHA for 1ba94f6
src/dialogs/dialogs.ios.ts
@@ -284,14 +284,17 @@ export class AlertDialog {
284
this.presentingController = showUIAlertController(this.alertController, this.options);
285
}
286
287
+ hiding = false;
288
async hide() {
- if (this.presentingController) {
289
+ if (this.presentingController && !this.hiding) {
290
+ this.hiding = true;
291
return new Promise<void>((resolve) => {
292
this.presentingController.dismissViewControllerAnimatedCompletion(true, () => {
293
resolve?.();
294
this.alertController.clear();
295
this.presentingController = null;
296
this.alertController = null;
297
+ this.hiding = false;
298
});
299
300
0 commit comments