JedWatson / JedWatson/react-select

"react-select" Dropdown Not Opening Inside "react-beautiful-dnd" Draggable Component

Open
#5,948 3 comments 2 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

Problem

When using react-select inside a draggable component from react-beautiful-dnd, the dropdown does not open on click.

Versions
  • react-select: ^5.8.0
  • react-beautiful-dnd: ^13.1.1
Steps to Reproduce
  1. Create a draggable component using react-beautiful-dnd.
  2. Inside the draggable component, include a react-select dropdown.
  3. Attempt to open the react-select dropdown by clicking on it.
Expected Behavior

The react-select dropdown should open when clicked.

Actual Behavior

The react-select dropdown does not open when clicked.

Additional Information
  • This issue occurs only when react-select is used inside a draggable component. It works fine outside of it.
  • Select element from UI libraries like Chakra UI or Material UI works without any issue within draggable component

Request: If possible, could a quick fix be provided for this issue? It's blocking key functionality in our application. Thanks in advance!

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

Reproduce the issue with react-select ^5.8.0 nested inside a react-beautiful-dnd ^13.1.1 draggable component, comparing it with a select outside the draggable and the cited Chakra UI or Material UI controls. Trace the click behavior and document a fix that allows the react-select dropdown to open inside the draggable without breaking other controls.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.