react-checkbox-tree
react-checkbox-tree copied to clipboard
fix: prevent all node to be checked when filtering tree
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}});
This fixed all filter problems. Thanks Team.