From 7a433784bc1b87778b59dbb3e3ee4ef74d5cc282 Mon Sep 17 00:00:00 2001 From: simplejason Date: Mon, 14 Oct 2019 19:37:01 +0800 Subject: [PATCH] fix(module: tree): fix nzHideUnMatched bug (#4286) close #3970 --- components/core/tree/nz-tree-base.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/components/core/tree/nz-tree-base.service.ts b/components/core/tree/nz-tree-base.service.ts index 27dec85f11a..f25a8d09c51 100644 --- a/components/core/tree/nz-tree-base.service.ts +++ b/components/core/tree/nz-tree-base.service.ts @@ -374,6 +374,7 @@ export class NzTreeBaseService implements OnDestroy { } else { n.isMatched = false; } + n.canHide = !n.isMatched; n.children.forEach(child => { searchChild(child); });