[Dialog] scrolling issue with react-select inside
See original GitHub issueBug report
Current Behavior
I’m using a react-select component inside of a Dialog component, I had to add a pointer-events: auto to deal with visibility issue but now I’m facing a scrolling issue with my menu list.
Expected behavior
The mouse wheel should works well
Reproducible example
Suggested solution
Additional context
Your environment
| Software | Name(s) | Version |
|---|---|---|
| Radix Package(s) | @radix-ui/react-dialog | 0.1.5 |
| React | 17.0.2 | |
| Browser | ||
| Assistive tech | ||
| Node | n/a | |
| npm/yarn | ||
| Operating System |
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
react-select inside Radix Dialog scroll issue - CodeSandbox
Forked Fromreact-select inside Radix Dialog; Environmentcreate-react-app. Files. App.js. index.js. package.json. styles.css. Dependencies. @radix-ui/colors.
Read more >react - select causing page to scroll down - Stack Overflow
This problem is caused by the default value of the menuPosition prop being absolute . On a long dropdown list, the dropdown area...
Read more >How to fight the <body> scroll. First of all - Medium
In short — because sometimes you have to block all the interactions with the page. ... to explain why scroll should be blocked,...
Read more >DropDownList / How To / Close the popup on scroll - Syncfusion
Close the popup on scroll in React DropDownList component ... By using the hidePopup method in DropDownList, you can close the popup on...
Read more >Select - Examples - Components - Atlassian Design System
import React from 'react'; import Select from '@atlaskit/select'; ... <label htmlFor="single-select-example">What city do you live in?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My bad ! I didn’t know the behavior of this component when scrolling.
The issue is present only when the list has a long overflow (I have a small screen but you should reproducing it adding more items on the list)
https://user-images.githubusercontent.com/6774576/151835451-fc415237-fecd-45ce-b90b-dc822dd5c948.mov