Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection of only single child makes its parent fully checked, is there a way to make it half checked #88

Open
Siddharth-RWS opened this issue Mar 24, 2023 · 2 comments

Comments

@Siddharth-RWS
Copy link

No description provided.

@shunjizhan
Copy link
Owner

in the current definition, a parent is fully checked if all children are checked, so unfortunately there is no way to change this. If you want to build a custom definition, you will have to fork it and implement the logic you need.

@shunjizhan
Copy link
Owner

logic for updating parent check status is here https://github.com/shunjizhan/use-tree-state/blob/main/src/utils.js#L82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants