Skip to content

Commit

Permalink
fix(module:menu): do not remove submenu when click title (#576)
Browse files Browse the repository at this point in the history
close #454
  • Loading branch information
vthinkxie authored Nov 16, 2017
1 parent 7006766 commit 37cef47
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 37cef47

Please sign in to comment.