mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(navPush): unhandled promise exception
This commit is contained in:
@ -72,7 +72,9 @@ export class NavPush {
|
|||||||
@HostListener('click')
|
@HostListener('click')
|
||||||
onClick(): boolean {
|
onClick(): boolean {
|
||||||
if (this._nav && this.navPush) {
|
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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user