react-component / react-component/cascader

当设置了fieldNames,组件内部设置loadingKeys时,应该判断取fieldNames设置的value对应字段

Open
#202 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

设置了fieldNames时,代码中直接取的value,会将loadingKeys设置成undefined,进而报错白屏了
image

应该要判断取设置的fiedNames中value对应的别名字段,如本例中的code

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.