mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(alert): unhandled promise exception
This commit is contained in:
@@ -259,7 +259,9 @@ export class AlertCmp {
|
||||
}
|
||||
|
||||
if (shouldDismiss) {
|
||||
this.dismiss(button.role);
|
||||
this.dismiss(button.role).catch(() => {
|
||||
console.debug('alert can not be dismissed');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -81,6 +81,7 @@ export class TabsPage {
|
||||
alert.dismiss().then(() => {
|
||||
resolve();
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user