MandarinConLaBarba / react-tree-menu

A stateless tree menu component for React.
http://mandarinconlabarba.github.io/react-tree-menu/example/index.html
MIT License
170 stars 51 forks source link

Propagating a child node's checkbox value to ancestor nodes #28

Open wentaoxu415 opened 8 years ago

wentaoxu415 commented 8 years ago

As of now, toggling a parent node to be true would toggle all of its children nodes to be also true. However, I would like to propagate a child node's checkbox value back to its ancestor nodes. For example, in your Dynamic (object) demo, toggling Sub-Sub Option 1 to be true should also toggle Sub-Option 1 and Option 1 to be true.