mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(navPop): unhandled promise exception
This commit is contained in:
@ -43,7 +43,9 @@ export class NavPop {
|
||||
onClick(): boolean {
|
||||
// If no target, or if target is _self, prevent default browser behavior
|
||||
if (this._nav) {
|
||||
this._nav.pop(null, null);
|
||||
this._nav.pop().catch(() => {
|
||||
console.debug('navPop was rejected');
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user