Closed PaulUpson closed 13 years ago
Been using your Tree UI component and noticed that it loses the indent if the node has children.
http://jsfiddle.net/pabloski/K9S36/10/
Coz the call to set child nodes is recursive their parents level wasn't set before their children attempted to set theirs. I've just set the level before setting the children.
http://jsfiddle.net/pabloski/K9S36/11/
p.s. loving your work with these components.
Good catch. I think I've fixed this before an somehow its ended up in the wrong order again. That's my first ever pull request. :)
Been using your Tree UI component and noticed that it loses the indent if the node has children.
http://jsfiddle.net/pabloski/K9S36/10/
Coz the call to set child nodes is recursive their parents level wasn't set before their children attempted to set theirs. I've just set the level before setting the children.
http://jsfiddle.net/pabloski/K9S36/11/
p.s. loving your work with these components.