react-checkbox-tree icon indicating copy to clipboard operation
react-checkbox-tree copied to clipboard

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

Open hauhuynh1208 opened this issue 5 years ago • 6 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,

hauhuynh1208 avatar Nov 18 '20 10:11 hauhuynh1208

@jakezatecky could you please help me this question?

hauhuynh1208 avatar Nov 24 '20 10:11 hauhuynh1208

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.

jakezatecky avatar Nov 24 '20 22:11 jakezatecky

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

hauhuynh1208 avatar Nov 25 '20 04:11 hauhuynh1208

@jakezatecky any updates?

hauhuynh1208 avatar Dec 03 '20 05:12 hauhuynh1208

@jakezatecky any helps? please

hauhuynh1208 avatar Dec 24 '20 08:12 hauhuynh1208

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.

jakezatecky avatar Jan 20 '21 02:01 jakezatecky