react-checkbox-tree icon indicating copy to clipboard operation
react-checkbox-tree copied to clipboard

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

Open sagarreddy-gfk opened this issue 2 years ago • 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!

sagarreddy-gfk avatar Jan 20 '23 09:01 sagarreddy-gfk

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.

jakezatecky avatar Jan 23 '23 16:01 jakezatecky

Thank you!

sagarreddy-gfk avatar Jan 25 '23 13:01 sagarreddy-gfk