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

body ScrollBar disappear on clicking Text Field or TablePagination row page #35483

Open
charbel911 opened this issue Dec 14, 2022 · 9 comments
Open
Assignees
Labels
component: pagination This is the name of the generic UI component, not the React module! component: text field This is the name of the generic UI component, not the React module!

Comments

@charbel911
Copy link

charbel911 commented Dec 14, 2022

hii i've an issue where i noticed in every clickable mui component so when i click for example on Text Field or Table Pagination row page the body scroll disappear any solution for it i know that in Select Component for example we use disableScrollLock but this option not working with others components

@zannager zannager added component: text field This is the name of the generic UI component, not the React module! component: pagination This is the name of the generic UI component, not the React module! status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 15, 2022
@zannager
Copy link
Member

Please provide a minimal reproduction test case with the latest version. This would help a lot 👷. A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

@charbel911
Copy link
Author

https://codesandbox.io/s/modest-hooks-s0k53z?file=/src/TableData.js:55-65
please check this demo test so when you click on row per page notice that the body scroll is disappearing

@siriwatknp
Copy link
Member

https://codesandbox.io/s/modest-hooks-s0k53z?file=/src/TableData.js:55-65 please check this demo test so when you click on row per page notice that the body scroll is disappearing

Can you post a recording? I could not reproduce from the Sandbox you provided.

@siriwatknp siriwatknp added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 19, 2022
@charbel911
Copy link
Author

scroll.bug.webm

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Dec 19, 2022
@theRedCount
Copy link

same effect with Select and Textfield

@charbel911
Copy link
Author

@landerover yes sure but unfortunately i did not receive any fixing solution

@theRedCount
Copy link

I managed to solve this problem.
Basically I need to display it on all my application otherwise I have graphic problems with the background image.
So I just added !important to the css rule I already wrote, as follow:

html,
body {
     overflow-y: scroll !important;
}

@charbel911
Copy link
Author

@landerover thank you it works

@sedatbasar
Copy link

Here is the workaround i had for this #17353 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pagination This is the name of the generic UI component, not the React module! component: text field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

5 participants