JedWatson / JedWatson/react-select

onInputChange doesn't execute on <Select /> when options length is more than 1000 items

Open
#4,745 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting-author-response
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

Related Issue: https://github.com/JedWatson/react-select/issues/3128

How to reproduce:

  1. Create an options prop with over 3k items (It fails randomly with less but never worked over this length).
  2. Pass the options prop to a instance. Pass an onInputChange function to the same instance. Try to type some input. It won't execute the function and you'll see similar violation logs as in the related issue.

Contributor guide

Open the contributing guide

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

Reproduce the issue with a Select component, more than 3,000 options, and an onInputChange handler, then inspect the input-handling entry point used while typing. Confirm the failure and violation logs before changing anything; done means the handler executes reliably for large option lists without the reported violations.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.