Skip to content

Commit

Permalink
fix(module: tree): fix nzHideUnMatched bug (#4286)
Browse files Browse the repository at this point in the history
close #3970
  • Loading branch information
simplejason authored and vthinkxie committed Oct 14, 2019
1 parent a05bc02 commit 87dd59e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/core/tree/nz-tree-base.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export class NzTreeBaseService implements OnDestroy {
} else {
n.isMatched = false;
}
n.canHide = !n.isMatched;
n.children.forEach(child => {
searchChild(child);
});
Expand Down

0 comments on commit 87dd59e

Please sign in to comment.