What I have:
I have implemented a tree like structure with checkbox selection and search filter. The hierarchy is of fixed 3 levels(Parent->Intermediate->Child). Selecting checkboxes is working perfectly fine(with all feature including indeterminate sign on checkbox when some of nodes selected or tick sign when all childs are selected).
I have also applied a search filter on the tree structured data with a custom angular pipe.
The problem happens when I apply search filter, the selection of checkboxes misbehaves. Also it do not get selected. The indeterminate sign also not working as expected.
A very good reference is this: https://angular2-tree.readme.io/docs/filtering, although I can't use this library, but I wanted to have exact similar feature.
My requirement is that user should able to filter the nodes and select the node
What I tried:
I have created this Stackblitz link. Please have a look at this.
Any help or suggestion would be much appreciated. Thanks!