From e5666856ebe689c653349b60a7b585dfc8faea3a Mon Sep 17 00:00:00 2001 From: vthinkxie Date: Sat, 13 Jul 2019 16:16:44 +0800 Subject: [PATCH] fix(module:menu): fix menu nzMatchRouter in nested menu close #3736 --- components/menu/nz-menu-item.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/menu/nz-menu-item.directive.ts b/components/menu/nz-menu-item.directive.ts index 069ceb6b713..fe619ba5595 100644 --- a/components/menu/nz-menu-item.directive.ts +++ b/components/menu/nz-menu-item.directive.ts @@ -89,7 +89,7 @@ export class NzMenuItemDirective implements OnInit, OnChanges, OnDestroy, AfterC const hasActiveLinks = this.hasActiveLinks(); if (this.nzSelected !== hasActiveLinks) { this.nzSelected = hasActiveLinks; - this.setClassMap(); + this.setSelectedState(this.nzSelected); } }); }