JedWatson / JedWatson/react-select

AsyncSelect with multiselect with closeMenuOnSelect unexpectedly closes menu.

Open
#5,508 4 comments 11 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

Async Multi Select dropdown is collapsed when click on checkbox label in custom components.Option component, that should not be expected when using closeMenuOnSelect={false} hideSelectedOptions={false}.

Code example:
https://codesandbox.io/s/codesandboxer-example-forked-zhpeew?file=/example.tsx

Recording:

https://user-images.githubusercontent.com/16884481/206494633-9ee9b028-fa20-416b-98fb-fc719199b876.mov

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 with the linked CodeSandbox at example.tsx and reproduce the Async Multi Select behavior using a custom components.Option. Check the interaction between the checkbox label and closeMenuOnSelect={false} with hideSelectedOptions={false}. Done means clicking the checkbox label leaves the menu open while preserving multiselect behavior.

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.