Skip to content

Commit

Permalink
fix(module:tree-select): click label behavior is incorrect in strict …
Browse files Browse the repository at this point in the history
…mode (#4424)

close #4422
  • Loading branch information
hsuanxyz authored and simplejason committed Nov 17, 2019
1 parent a6b5901 commit 7a11124
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/tree-select/nz-tree-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ export class NzTreeSelectComponent extends NzTreeBase implements ControlValueAcc
const node = event.node!;
if (this.nzCheckable && !node.isDisabled && !node.isDisableCheckbox) {
node.isChecked = !node.isChecked;
this.nzTreeService.conduct(node);
node.isHalfChecked = false;
if (!this.nzCheckStrictly) {
this.nzTreeService.conduct(node);
}
}
if (this.nzCheckable) {
node.isSelected = false;
Expand Down

0 comments on commit 7a11124

Please sign in to comment.