Skip to content

About the usage of tree-view trackBy attribute #7118

@lycHub

Description

@lycHub

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions