alekseymakhankov / hyper-tree

React treeview component
MIT License
68 stars 11 forks source link

Traverse Breadth bug #6

Closed dziadyk-m closed 2 years ago

dziadyk-m commented 3 years ago

There is a bug in Node.ts file. _traverseBreadth should invoke _traverseBreadth recursively but it invoke _traverseDeep instead. Because of that childrenCount has incorrect value and vertical lines are shorter or longer then them should be.

Fix: change line 539 in Node.ts: this._traverseDeep(node.children, callback, depth + 1) -> this._traverseBreadth(node.children, callback, depth + 1)

alekseymakhankov commented 2 years ago

Fixed in 0.3.12