Skip to content

Freezing when opening a node with id=0 #244

@uoyniXnaH

Description

@uoyniXnaH

Describe the bug
Thank you for this component. It is great and helps me a lot.
I noticed a small bug that, if a node's id was set to be 0, the treeview could be rendered though, when try opening the node, the page would freeze.

To Reproduce
At the demo 1
If we change the id of node "Folder 1" to be 0, and try opening "Folder 1", the page freezes and does not respond.

Expected behavior
I am not sure. I guess 0 is the parent's id. If a node id is 0, the component may stop rendering to raise an error or something. Freezing is unexpected.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome/Windows webview 2
  • Version: Chrome 143

Additional context
If you are too busy to fix this bug, I am pleased to have a try.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions