react-component / react-component/select

【bug】When the value in options is null or undefined, it will be converted to an index.

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.