react-component / react-component/tree
Feature request: half-checked parent => uncheck all children => check all children
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
Currently when a parent node is half-checked, clicking on it will check all its children. Would it be possible to add a prop that would change the logic such that it will uncheck all the children instead and when checking again, only then select all children?
Current behaviour:
half-checked parent => check all children => uncheck all children
Desired behaviour:
half-checked parent => uncheck all children => check all children
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by locating the tree's parent-selection logic and existing selection tests, then verify the requested prop's behavior for a half-checked parent: first uncheck all children, and on the next check select them all.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100