From 87dd59e6cbd0d6c9ad2747c796ac9edf2b1c0b34 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); });