Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nz-tree多层级渲染导致的checkbox未被选中问题 #3832

Closed
MrCodeFront opened this issue Jul 19, 2019 · 1 comment · Fixed by #6161
Closed

nz-tree多层级渲染导致的checkbox未被选中问题 #3832

MrCodeFront opened this issue Jul 19, 2019 · 1 comment · Fixed by #6161

Comments

@MrCodeFront
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-ycxybh

Steps to reproduce

直接获取json数据,4个foreach循环组装树形组件数据,以最后的叶子节点的选中状态为准,叶子节点的option为1代表被选中,为0代表未选择

What is expected?

被选中的叶子节点的父节点都应该被选中

What is actually happening?

被选中的叶子节的父节点部分被选中、部分未被选中

Environment Info
ng-zorro-antd 8.1.0
Browser chrome

数据量比较大的情况下,可能导致这种问题的出现;二层、三层树形控件暂未出现这种问题

@zorro-bot
Copy link

zorro-bot bot commented Jul 19, 2019

Translation of this issue:

Nz-tree multilevel rendering caused checkbox not selected

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-ycxybh

Steps to reproduce

The json data is directly obtained, and the four foreach loops assemble the tree component data, which is based on the selected state of the last leaf node. The option of the leaf node is 1 for being selected, and 0 is for no selection.

What is expected?

The parent node of the selected leaf node should be selected

What is actually happening?

The parent node of the selected leaf section is selected and partially unselected

Environment Info
ng-zorro-antd 8.1.0
Browser chrome

In the case of a large amount of data, this problem may occur; the two-layer and three-layer tree controls do not have such a problem.

@vthinkxie vthinkxie removed their assignment Jul 26, 2019
@vthinkxie vthinkxie mentioned this issue Apr 15, 2020
48 tasks
@hsuanxyz hsuanxyz added this to the backlog milestone Oct 22, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 8, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 9, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 14, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Dec 16, 2020
hsuanxyz added a commit that referenced this issue Dec 16, 2020
close #5976, close #5809, close #5739, close #5736, close #5519, close #5446, close #5152, close #4694, close #4472, close #3832, close #2785, close #2744, close #6199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants