Skip to content

Commit

Permalink
fix(module:menu): do not remove submenu when click title
Browse files Browse the repository at this point in the history
close #454
  • Loading branch information
执衡 committed Nov 16, 2017
1 parent 8dd8a43 commit 9b32b25
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 9b32b25

Please sign in to comment.