dowjones / react-dropdown-tree-select

Lightweight, accessible, customizable and fast Dropdown Tree Select component for React
https://dowjones.github.io/react-dropdown-tree-select/
MIT License
468 stars 269 forks source link

Clicking on label for radioSelect doesn't select a node #661

Closed mkaluzny closed 8 months ago

mkaluzny commented 9 months ago

With radioSelect mode clicking on a label of a node should set a value to the clicked node, however it should set the value to the selected node (as it happens for singleSelect mode). Currently nothing happend after clicking the label (besides closing the dropdown). Use have to click on radio to select the node, it would be much more intuitive if clicking on label would also select the node.

putramtp commented 9 months ago

hi , i found a same problem , I temporarily changed the data structure and set the desired value to checked === true , it worked for me, ex: data =
{ label, // required: Checkbox label value, // required: Checkbox value children , // optional: Array of child objects checked : true }

I hope it helps you : )

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.