react-component / react-component/tree-select

Can I change the TreeSelect props on the fly?

Open
#357 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
312
Forks
204
Avg merge
37m
Merged PRs (30d)
1

Description

Can I change the TreeSelect props on the fly? For example, I wanted to have 2 modes for this component, so user can freely switch between TreeSelect.SHOW_ALL and TreeSelect.SHOW_PARENT. From my understanding, I need to change the props of showCheckedStrategy & treeCheckStrictly to make this happen. Any Idea on how to dynamically change this two props?

MODE 1 : Select only parent
showCheckedStrategy = TreeSelect.SHOW_PARENT
treeCheckStrictly = true
image

MODE 2: Select parent and all its children
showCheckedStrategy = TreeSelect.SHOW_ALL
treeCheckStrictly = false
image

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

The issue does not name a source file, test, or entry point; begin by locating the TreeSelect component and its handling of showCheckedStrategy and treeCheckStrictly. Define whether switching between the two modes is supported and what selection state should be preserved, then document or test the agreed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.