Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@clayui/core): fixes error when having condition in the children …
…of TreeView.Item and TreeView.ItemStack the last element is positioned to the right Using `React.Children.toArray` brings the result different from `React.Children.map`, apparently when you have conditionals, some elements are `Array<Array<any>>` while `React.Children.map` brings a flat array, we use `React.Children.count` because it is safer here and brings the exact count of elements as children.
- Loading branch information