react-component / react-component/select
【bug】When the value in options is null or undefined, it will be converted to an index.
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 938
- Forks
- 482
- Avg merge
- 15h 8m
- Merged PRs (30d)
- 2
Description
- Question and description, as indicated in the title.
- convert2LabelValues , please check the handling of rawValue, it shouldn't be given a default value.
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 in src/Select.tsx at convert2LabelValues around line 269, focusing on how rawValue is handled when an option value is null or undefined. Confirm the behavior that currently converts those values to an index, then verify that the resulting behavior preserves the option value instead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100