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

Lock scrolling of parent modal #62

Open
delrueba opened this issue Nov 8, 2018 · 1 comment
Open

Lock scrolling of parent modal #62

delrueba opened this issue Nov 8, 2018 · 1 comment

Comments

@delrueba
Copy link

delrueba commented Nov 8, 2018

Hello,

as I understand it, it's only possible to add a scroll lock to the body.
We have a situation where there is a child modal so I would like to lock it's parent instead of the body (being already locked at that point)

What I do in our own (not working on ios) code is search for an optional parentNode with queryselector and lock/release either that one or the body.

Would this be possible in your current setup and are you interested in a pull request on this issue?

@willmcpo
Copy link
Owner

Sure - if you are happy to send a PR, we can check it out 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants