JedWatson / JedWatson/react-select

Input keeps hidden after selecting option with openMenuOnClick=false

Open
#3,923 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I set openMenuOnClick=false.

  1. Select a option
  2. Click outside the component
  3. Click back inside the component

The cursor dos not show up. The options are filtered when typing but the actual input value is not displayed either.

  1. Repeat 2. and 3.

The cursor is shown. The input value is displayed as well.

I found that the isHidden property in the Input field remains true and the Input element is not displayed after selecting the option and clicking out of the component (step 1. to 3.). It is reset to false after step 4 (see console output in the sandbox example).

Please refer to this Codesandbox.

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 four-step sequence in the linked CodeSandbox with openMenuOnClick=false, then trace the Select Input rendering and its isHidden state. Done means the cursor and selected input value are visible immediately after selecting an option, clicking outside, and clicking back inside.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.