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

removeMulti doesn't work fully #81

Closed
bryan-helsens opened this issue Nov 8, 2023 · 1 comment
Closed

removeMulti doesn't work fully #81

bryan-helsens opened this issue Nov 8, 2023 · 1 comment

Comments

@bryan-helsens
Copy link

In my tree, when I attempt to close a node, I expect all its children and sub-children to be removed from the tree. After consulting your documentation, I came across the 'removeMulti' function. However, I've encountered an issue while using this function – it doesn't remove all of the children as expected. Instead, it only removes approximately half of the children associated with a parent node.

Here's the code I've employed:
tree.value.removeMulti( stat.children )

Is there a way to ensure that the 'removeMulti' function removes all of the children?

@phphe
Copy link
Owner

phphe commented Nov 9, 2023

try

tree.value.removeMulti( [...stat.children ]) 

@phphe phphe closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants