[Select] Add an option to not lock the body scrollbar
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
To not hide overflow of body & make things shift when scrollbar disappears.
Current Behavior
Hides overflow of body.
Steps to Reproduce (for bugs)
- Have content within
<body>
tag that causes it to overflow or<body>
has style ofoverflow: visible
- Open select drop down
Context
It messes with styling that relies on body having overflow content. Below is a sample of what’s happening on the demo site. Notice the scroll bar vanishing as soon as the menu pops up.
Your Environment
Tech | Version |
---|---|
Material-UI | v1.0.0-beta.24 |
React | v16.2.0 |
browser | 61.0.3163.79 |
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
[Select] Add an option to not lock the body scrollbar #9595
I have searched the issues of this repository and believe that this is not a duplicate. Expected Behavior To not hide overflow of...
Read more >Hide vertical scrollbar in <select> element - Stack Overflow
11 Answers It hides the scrollbar in the case that you don't need it without hiding possible extra option elements in the other...
Read more >body-scroll-lock - npm
Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element ...
Read more >How To Hide Scrollbars With CSS - W3Schools
Learn how to hide scrollbars with CSS. How To Hide Scrollbars. Add overflow: hidden; to hide both the horizontal and vertical scrollbar. Example....
Read more >Hide or display scroll bars in a workbook - Microsoft Support
Hide or display scroll bars in a workbook · Click the File tab. · Click Options, and then click the Advanced category. ·...
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 FreeTop 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
Top GitHub Comments
@brianperera You should use the
MenuProps
props like so :I am facing the same issue in the latest version of Material ui