react-component / react-component/cascader
当设置了fieldNames,组件内部设置loadingKeys时,应该判断取fieldNames设置的value对应字段
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 233
- Forks
- 149
- Avg merge
- 10h 23m
- Merged PRs (30d)
- 2
Description
设置了fieldNames时,代码中直接取的value,会将loadingKeys设置成undefined,进而报错白屏了

应该要判断取设置的fiedNames中value对应的别名字段,如本例中的code
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 by reproducing the white-screen error with fieldNames configured so the value field is aliased to code. Trace the component's loadingKeys handling and verify that it reads the configured value alias rather than a missing value property; done means async loading no longer produces undefined or an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100