jakezatecky/react-checkbox-tree

expand icon doesn't show up if the children is empty

sagarreddy-gfk opened this issue · 2 comments

On every click of the label, if the children is empty we are making api call to fetch the children of that particular label and append data to clicked label. In this case, since children is empty, expand icon is not visible.

Can someone pls let me know how to handle this scenario. Thanks in advance!

Your use case makes sense. We can add this behavior to the component, but this would be a breaking change. However, I think this is worth inclusion. I will slate this for the next major version.

Thank you!