react-component / react-component/select

value 能否支持引用类型,如 { name: 'abc' }

Open
#657 0 comments 1 reaction 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

目前使用引用类型做 value, React 渲染在此处 L283 会抛错,能否兼容处理一下?

https://github.com/react-component/select/blob/9b2fa1da18505e234efe1f94d53a2e87a614980d/src/OptionList.tsx#L266-L286

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 reading src/OptionList.tsx around L266-L286, especially the rendering path linked in the issue. Reproduce the failure with an option whose value is a reference object, then confirm that reference-type values no longer cause the React rendering error.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.