mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(navPush): check if the NavPush page exists. (#8934)
When using the NavPush directive there isn't a way to disable the nav from trying to push.
This commit is contained in:
@@ -71,7 +71,7 @@ export class NavPush {
|
||||
*/
|
||||
@HostListener('click')
|
||||
onClick(): boolean {
|
||||
if (this._nav) {
|
||||
if (this._nav && this.navPush) {
|
||||
this._nav.push(this.navPush, this.navParams, null);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user