jakezatecky / react-checkbox-tree

A simple and elegant checkbox tree for React.

Home Page:https://jakezatecky.github.io/react-checkbox-tree/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

partially-checked node should be able to controlled to adding to checked array or not

hauhuynh1208 opened this issue · comments

Now I am having this tree
image
I would like to add the node API and Reports into the checked array.
Notice that:

  • I made checkModel props as "all"
  • Reports and API node is partially-checked node

Regards,

@jakezatecky could you please help me this question?

Can you post a live example from this reference point? If you have those two nodes in the checked array with checkModel="all" and they show up as partially checked, then this would indeed be a bug.

thanks for your reply @jakezatecky,
I created sandbox code here. You can see that when I check node "A", node "Phobos" is not listed in checked array although I set checkModel='all' props

@jakezatecky any updates?

@jakezatecky any helps? please

Sorry for the delayed response. The issue is that this component only includes a node in the checked array when checkModel=all if the node is fully checked. Partially checked nodes are excluded by design.

The component will need some level of rework to support the inclusion of partially checked nodes in that array but for now it is not support, sorry.