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

Fixed the disabled scrolling when openning all dropdown menus #1048

Conversation

marinovl7
Copy link
Member

The user can't scroll down if a dropdown menu is opened.I already fixed that in #1044 but then i wasn't having the backend installed.Now when i have it i noticed that the problem also appears when a user(PrivateMenu)/admin(AdminMenu) is logged in.Also it appeared when clicking on the user profile icon(PublicMenu) (obviously i didn't checked that).But now i fixed the issue in every dropdown menu.

Closing #1047

The bug was noticed in the MUI github repository
From the comments on the issue i found a solution on stackoverflow https://stackoverflow.com/questions/69065717/material-ui-menu-component-locks-body-scrollbar/71671897#71671897

Solved disabled scroll when a dropdown menu is opened

I solved the issue like on the Menu Component that is comming from MUI there is a property disableScrollLock and i set it to true in three other Dropdown Menu Components (Admin,Private,Public)

@marinovl7 marinovl7 linked an issue Oct 7, 2022 that may be closed by this pull request
@ani-kalpachka ani-kalpachka merged commit bf52837 into master Oct 8, 2022
@ani-kalpachka ani-kalpachka deleted the 1047-bug-scroll-bar-disabled-on-desktop-when-a-dropdown-menu-is-opened branch October 8, 2022 17:44
@marinovl7 marinovl7 added the hacktoberfest https://hacktoberfest.com/participation/ label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest https://hacktoberfest.com/participation/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Scroll bar disabled on desktop when a dropdown menu is opened
2 participants