Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Can I prevent scrollbar removal when using a Select component? #8475

Closed
1 task done
damien-monni opened this issue Sep 30, 2017 · 4 comments
Closed
1 task done
Labels
support: question Community support but can be turned into an improvement

Comments

@damien-monni
Copy link

damien-monni commented Sep 30, 2017

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When I click on a Select component, I don't expect my webpage scrollbar to disapear.

Current Behavior

Scrollbar disapear when a select is active.

arrow

Context

This is very annoying as in some situations it changes the layout of the page.

@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 30, 2017

It was designed not to change the layout of the page. We block the scroll as soon as the select menu is open. There is no workaround with the Menu component. The only alternative is so far is the native implementation.

We could consider having a non-blocking scroll implementation but that would require a large refactorization. I could take days to complete.

@oliviertassinari oliviertassinari added support: question Community support but can be turned into an improvement v1 labels Sep 30, 2017
@damien-monni
Copy link
Author

I see, thanks for answering. Actualy in my case it changes the layout of fixed positioned element (like my nav bar).

@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 30, 2017

@damien-monni Add the mui-fixed class name on your fixed positioned element.

@pelotom
Copy link
Member

pelotom commented Jan 5, 2018

I'm running into this issue and adding the mui-fixed class didn't seem to help, any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants