-
Notifications
You must be signed in to change notification settings - Fork 473
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
fix: vertical scrolling after opening the Mobile paring modal #1295
Conversation
The code looks good, thanks @metadiver! We're atm setting up a contributor agreement action, please give us some time to properly configure it, and then we can accept your PR. Cheers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way I found that works is to change the Dialog
to be a controlled component i.e. have a state for open
and call setOpen(false)
when closing the modal. This seems to trigger MUIs logic to remove the overflow property from the body.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
thank you! |
@metadiver could you please add this to the PR description?
Thanks! |
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2022 Safe Web Core Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
What it solves
Resolves #1281
How this PR fixes it
QRModal.ts manual handling of the Dialog is conflicting with mui's ModalManager, this PR is a workaround to remove the body styles manually after the modal is closed.
How to test it
Analytics changes
Screenshots
CLA
With the submission of this Pull Request, I confirm that I have read and agree to the terms of the Contributor License Agreement.