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