Description
Describe the bug
Please include a clear and concise description of what the bug is.
With an implementation similar to: https://github.com/jakezatecky/react-checkbox-tree/blob/master/examples/src/js/FilterExample.js
Select a bunch of nodes, and then search and check one. The selection gets cleared to whats visible.
I guess the second issue is the demo I copy pasted doesn't totally work either as leafs suddenly show as parents when searching:
Reproduction steps
Please include the necessary steps to reproduce the issue as well as a live example that showcases it. You can modify this CodeSandbox reference point to create a working example.
- select a bunch of nodes
- search for something
- select something
EXPECTED: the node from step 3 should be added to the collection of selected nodes from step 1
ACTUAL: only the nodes visible from the search on step 2 are selected
Expected behavior
Please include a clear and concise description of what you expected to happen.
nodes that were selected before searching should remain selected
Screenshots
If applicable, add screenshots to help explain your problem.