JedWatson / JedWatson/react-select
Clearing value incorrect behaviour
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
- Focus the field
- Select a value
- Type a search term
- Click the clear indicator
Expected: clears the value and the search term — OR — clears the search term and returns state to selected value with flashing cursor
Actual: clears the value, not the search term
v5 example: https://codesandbox.io/s/codesandboxer-example-forked-x1mnm5
v4 example: https://codesandbox.io/s/codesandboxer-example-forked-gfoo92
In v4 it clears both the value and search term.
Contributor guide
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 by running the linked v5 and v4 CodeSandbox examples and compare the clear-indicator behavior. Trace how clearing updates the selected value and search term, then confirm the fix matches one of the expected behaviors and preserves the v4 result.
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
- 45/100