jakezatecky / react-checkbox-tree

A simple and elegant checkbox tree for React.
https://jakezatecky.github.io/react-checkbox-tree/
MIT License
705 stars 212 forks source link

Filtering is not working as expected #216

Open gaddamsandeeps opened 4 years ago

gaddamsandeeps commented 4 years ago

Filtering of the nodes is working as supposed to be.

But we re unable to select/unselect a node after filtering.

jalalazimi commented 4 years ago

Hi @gaddamsandeeps , Please check out #217 . Replace filtered.push({ ...node, children }); with filtered.push({...node, ...children.length && {children}});

gaddamsandeeps commented 4 years ago

This fixed all filter problems. Thanks Team.