Open dmarzo opened 12 years ago
Thanks for reporting this. I'll fix this asap..
(fixed code snipped in issue)
what's the status on this?
I think this is the same bug as #15, which I've fixed in PR #24.
Hi all, is this fix already?
Floppy's PR fixes the issue, but I don't know if it wasn't accepted yet or what, but if you update your copy it works like a charm. Thanks @Floppy
I think it's not fixed due to there are two different issues: 1.- Problem with undefined right nodes. It's fixed alright width the hack on #15 from @PhilippFS. 2.- When there're one node with only one children, no children nodes is printed (no dashed parent node). It's like had reported in these issues #29 and #30
Anyone can try it with this data from json. Image attached with result: {"label":"Mdragi","amount":12,"color":"#E60202","children":[{"label":"Year 2012","amount":12,"color":"#20231c","children":[{"label":"December 2012","amount":12,"color":"#545166","children":[{"label":"Thursday 20","amount":2,"color":"#403c41","children":[{"label":"Photo 2012December20","amount":1,"color":"#668430"},{"label":"Photo 2012December20","amount":1,"color":"#67862b"}]},{"label":"Friday 21","amount":1,"color":"#4b5549","children":[{"label":"Photo 2012December21","amount":1,"color":"#689723"}]},{"label":"Wednesday 26","amount":1,"color":"#20262a","children":[{"label":"Photo 2012December26","amount":1,"color":"#457c01"}]},{"label":"Friday 28","amount":4,"color":"#3a4131","children":[{"label":"Photo 2012December28","amount":1,"color":"#536800"},{"label":"Photo 2012December28","amount":1,"color":"#7b9524"},{"label":"Photo 2012December28","amount":1,"color":"#4a8116"},{"label":"Photo 2012December28","amount":1,"color":"#7a8f2b"}]},{"label":"Sunday 30","amount":2,"color":"#4d412a","children":[{"label":"Photo 2012December30","amount":1,"color":"#56700d"},{"label":"Photo 2012December30","amount":1,"color":"#00ab8d"}]},{"label":"Monday 31","amount":1,"color":"#22100d","children":[{"label":"Photo 2012December31","amount":1,"color":"#20b0ae"}]},{"label":"Saturday 22","amount":1,"color":"#4a454f","children":[{"label":"Photo 2012December22","amount":1,"color":"#0b9597"}]}]}]}]}
If delete one children root, for example: node{label:'First child'}, cant navigate into children's of node{label: 'Third child''}
(Sorry for the code format, no white spaces preserved)