react-component / react-component/cascader

全选时为什么onchange只传父节点的值

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
233
Forks
149
Avg merge
10h 23m
Merged PRs (30d)
2

Description

https://github.com/react-component/cascader/blob/master/src/Cascader.tsx#L372

没理解为什么这么做, 如果想要传 ’SHOW_CHILD'效果怎么办

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

Start at src/Cascader.tsx around line 372 and inspect how selecting all options determines the onChange value. Compare that behavior with the requested SHOW_CHILD result and establish the expected value shape for the selected tree; the work is done when the intended behavior is supported or clearly documented and verified against the relevant selection path.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.