JedWatson / JedWatson/react-select

Cursor indicator not showing on click with openMenuOnClick={false}

Open
#5,553 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/bug-unconfirmed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

I am encountering a bug when using the async select component with the prop openMenuOnClick={false}. When clicking on the field after selecting a value, despite being searchable, the cursor indicator does not appear until I start typing.

I have tried searching for similar issues on GitHub and while I found many that were similar, none of the solutions provided solved my problem. I also tried simplifying my implementation and even tested it on a code-sandbox with just React and react-select, but the problem still persisted.

I believe this is a bug in the react-select component and would like to report it.

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 reproducing the behavior in the linked CodeSandbox with the async select component and openMenuOnClick={false}. Trace the searchable field's click and cursor-indicator behavior after a value is selected; done means the cursor indicator appears immediately on click without typing.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.