-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[beta.11] menu oberlay does not disable page scrolling #15725
Comments
I found a fairly clean solution. It is to create a directive that adds an ionOpen and ionClose listener to the menu component. This looks for ion-content that doesn't have a parent ion-menu and disables and enables scrollY depending on the event. It works fine but only if you use the toggle button menu. Using the horizontal swipe you can move the scroll :'( `import { MenuController } from '@ionic/angular'; @directive({
}` Further research :) PD: I've seen what happens with dialogs/modal, too. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
I'm using the menutype overlay and I'm noticing that if there's a content in the page with scroll it doesn't deactivate but allows scrolling.
Thanks.
The text was updated successfully, but these errors were encountered: