Skip to content

Commit

Permalink
fix(module:tabs): fix tabs still shows when no route is matched (NG-Z…
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell authored and simplejason committed Aug 25, 2019
1 parent c17c515 commit ecde8fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/tabs/nz-tabset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,11 @@ export class NzTabSetComponent
private updateRouterActive(): void {
if (this.router.navigated) {
const index = this.findShouldActiveTabIndex();
if (index !== this._selectedIndex && index !== -1) {
if (index !== this._selectedIndex) {
this.nzSelectedIndex = index;
this.nzSelectedIndexChange.next(index);
}
this.nzHideAll = index === -1;
}
}

Expand Down

0 comments on commit ecde8fd

Please sign in to comment.