Skip to content

Commit

Permalink
fix(module:cascader): fix broken nzChangeOnSelect (#6049)
Browse files Browse the repository at this point in the history
fix #6048
  • Loading branch information
rppig42 authored Nov 16, 2020
1 parent 679be27 commit 1575bae
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 || this.nzChangeOnSelect;
const shouldClose = option.isLeaf || (this.nzChangeOnSelect && this.nzExpandTrigger === 'hover');
if (shouldClose) {
this.delaySetMenuVisible(false);
}
Expand Down

0 comments on commit 1575bae

Please sign in to comment.