-
Notifications
You must be signed in to change notification settings - Fork 60
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
Deeper level tree issue #67
Comments
can you make a demo on codesandbox or codepen? |
I can't seem to reproduce it on codepen for some reason, though I have noticed that the id's, which I set at the creation of the tree to be the same as the 'text' field are being reset to their default. |
maybe |
did you manage to solve your problem ? I am running into the same one so any advice would be really appreciated, thanks ! |
@roxanerg If I recall correctly, I solved my issue by flattening the tree delete any item I needed to, and then unflatten. Unfortunately I do not have access to the code right now, but I think this was the general idea. Hope it helps! |
Hi!
I tried deleting some items from a nested tree I created, but it failed beyond the 1st split.
My code:
Part of my tree is like this:
My problem is that when i use getNodeById(name) (where name is the Id i set for each item) I get an object with only the direct parent and when I expand parent in the console to see what is in there, there is no additional parent item as I would expect.
For example in the above schema, getNodeById for child1 has parent item with details for parent2 but parent 2 does not include a parent item for parent1.
Though when I print the whole tree I do not have this issue.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: