Open Steague opened 8 years ago
Hmm, appears to work fine on the example (http://mandarinconlabarba.github.io/react-tree-menu/example/index.html). Looking at the code I can't see why this would happen...however if you can determine what is causing the problem I can take a look. Difficult for me to tell exactly just from looking at portions of your local setup.
Looking at the react debug window I do indeed see the checked parameter changing from false to true and vise versa when clicking the checkbox proper. Continuing to investigate in case it is just a visual bug with my browser.
I am using stateful mode with my tree coming from a data prop and when I click on the label of a tree node the checkbox associated with it correctly checks and unchecks properly.
When I click on the checkbox itself, the sub-nodes check themselves correctly but the checkbox associated with the node I clicked does not become checked.
Here is my treeMenu
Here is my data: