react-component / react-component/cascader
全选时为什么onchange只传父节点的值
Open
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
- 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
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