JedWatson / JedWatson/react-select
react-select inside radix-ui dialog not working properly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
In short, when I place react-select inside radix-ui dialog/popover and when focus is on react-select I am not able to close dialog using ESC. Additionaly "tab" traversal is not working properly. Pressing tab does not traverse between two selects
Here is a source code: https://codesandbox.io/s/trusting-dewdney-485wkd?file=%2Fsrc%2FApp.tsx
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
Start by running the linked CodeSandbox and inspecting src/App.tsx, focusing on the react-select instances inside the radix-ui dialog/popover. Reproduce the focus behavior with ESC and Tab, then compare the result against the expected dialog close and traversal behavior. Done means ESC closes the dialog and Tab moves between the two selects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100