mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(navPush): unhandled promise exception
This commit is contained in:
@ -72,7 +72,9 @@ export class NavPush {
|
||||
@HostListener('click')
|
||||
onClick(): boolean {
|
||||
if (this._nav && this.navPush) {
|
||||
this._nav.push(this.navPush, this.navParams, null);
|
||||
this._nav.push(this.navPush, this.navParams).catch(() => {
|
||||
console.debug('navPush was rejected');
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user