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

fix: prevent all node to be checked when filtering tree

Open jalalazimi opened this issue 5 years ago • 1 comments

Hi friends, I updated the following Example to fix #196 issue. If Instead of passing an empty array as a child, we don't pass children, this issue won't occur. I believe we have to prevent happening this bug inside the component, but it's the quickest solution that I've found.

 filtered.push({...node, ...children.length && {children}});

jalalazimi avatar Aug 12 '20 16:08 jalalazimi

This fixed all filter problems. Thanks Team.

gaddamsandeeps avatar Aug 13 '20 13:08 gaddamsandeeps