JedWatson / JedWatson/react-select

Multi Select with isSearchable false

Open
#5,237 0 comments 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

Thanks for using react-select!

I'm reporting a bug

Please include a test case that demonstrates the issue you're reporting!
Hi there, I'm currently running to a bug that when a selection is made the selection is the push to the left side and is not visible,
and when the selection is cleared the placeholder is the same.
A picture is included.

I've found that the issue is on the overflow css property on the valueContainer div.
In the meanwhile whenever I'm on mobile view and I set isSearchable to false I remove the overflow property and the bug solves.

Unfortunately I could not create a PR while I would love to.

Conditions To Reproduce

  • isSearchable set to false
  • width is only the size of the placeholder
  • isMulti set to true
  • isRtl set to true
    react-select-bug

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

No source file or test is named. Start at the valueContainer styling and reproduce the issue with isSearchable=false, isMulti=true, isRtl=true, and a width limited to the placeholder; inspect the overflow behavior. Done means selected values and the placeholder remain visible, with a regression test covering these conditions.

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.