From 9b32b25a82d9711202bf04878187e9efafba0f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=A7=E8=A1=A1?= Date: Thu, 16 Nov 2017 17:26:57 +0800 Subject: [PATCH] fix(module:menu): do not remove submenu when click title close #454 --- src/components/menu/nz-submenu.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/menu/nz-submenu.component.ts b/src/components/menu/nz-submenu.component.ts index f37d9ff921c..508c857bd00 100644 --- a/src/components/menu/nz-submenu.component.ts +++ b/src/components/menu/nz-submenu.component.ts @@ -83,7 +83,7 @@ export class NzSubMenuComponent implements OnInit, OnDestroy, AfterViewInit { } clickSubMenuTitle() { - if ((this.nzMenuComponent.nzMode === 'inline') || (!this.isInDropDown)) { + if ((this.nzMenuComponent.nzMode === 'inline') && (!this.isInDropDown)) { this.nzOpen = !this.nzOpen; this.nzOpenChange.emit(this.nzOpen); }