JedWatson / JedWatson/react-select
"react-select" Dropdown Not Opening Inside "react-beautiful-dnd" Draggable Component
Nobody has claimed this yet.
- 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
- Create a draggable component using
react-beautiful-dnd. - Inside the draggable component, include a
react-selectdropdown. - Attempt to open the
react-selectdropdown 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-selectis 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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