JedWatson / JedWatson/react-select

Clearing value incorrect behaviour

Open
#5,621 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  1. Focus the field
  2. Select a value
  3. Type a search term
  4. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.