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

About the usage of tree-view trackBy attribute #7118

Closed
lycHub opened this issue Dec 15, 2021 · 1 comment
Closed

About the usage of tree-view trackBy attribute #7118

lycHub opened this issue Dec 15, 2021 · 1 comment
Assignees

Comments

@lycHub
Copy link

lycHub commented Dec 15, 2021

Reproduction link

https://stackblitz.com/edit/angular-xdjeqe?file=src/app/app.component.ts

Steps to reproduce

Click the remove button at the top to delete the last node

What is expected?

Delete the last node, the arrow of its parent node disappears

What is actually happening?

The arrow of its parent node will not disappear

Environment Info
ng-zorro-antd 12.1.0
Browser edge

In order to prevent washing the entire tree every time, I used the trackBy attribute

@plakyda-codefresh
Copy link
Contributor

@lycHub, @hsuanxyz prepared PR for this issue
PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants