react-component / react-component/tree

Feature request: half-checked parent => uncheck all children => check all children

Open
#647 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.