Skip to content

Commit

Permalink
fix(module:menu): do not remove submenu when click title (NG-ZORRO#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie committed Nov 16, 2017
1 parent 2a2d7a6 commit 1b78a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/menu/nz-submenu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1b78a5e

Please sign in to comment.