Skip to content

Commit

Permalink
fix(module:cascader): menu closing behavoir (#6023)
Browse files Browse the repository at this point in the history
Co-authored-by: rppig42 <[email protected]>

close #6022
  • Loading branch information
rppig42 authored Nov 9, 2020
1 parent 8af418b commit 22aea7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cascader/cascader.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class NzCascaderComponent implements NzCascaderComponentAsSource, OnInit,
this.nzSelectionChange.emit([]);
} else {
const { option, index } = data;
const shouldClose = option.isLeaf;
const shouldClose = option.isLeaf || this.nzChangeOnSelect;
if (shouldClose) {
this.delaySetMenuVisible(false);
}
Expand Down

0 comments on commit 22aea7e

Please sign in to comment.