-
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
Scroll content + scroll popover doesn't work properly #16910
Comments
facing the same issue +1 |
as a temporary workaround, i could make this work by adding this global css:
Since Ionic is already adding the |
Also facing this issue 👍 |
My solution can be found here => https://stackoverflow.com/a/46597455 |
@Maraaghib I need to give it a try :) @chriswep the main issue I had with your solution is that I was not anymore able to scroll in my opened modals. I could have removed the ion-content tag from them but it doesn't catch the scroll in this case. A little "workaround" I wrote is:
This rules do not hide the overflow on element appearing with a backdrop. That's still a hack so I'm not totally satisfied... any idea from the core team please? @brandyscarney ? |
i have the same issue, i have not found any fix yet, it happens only on iOS, please check my post on ionic forum: |
We're facing the same issue, with Ionic v5. We integrated the workaround with global class and overflow. Is there any update available regarding this issue? |
Same error here, Ionic 5 using android. |
Another workaround: Just place this in your component styles or wherever you want: ion-content::part(scroll) {
overscroll-behavior-y: unset;
} It seems that the Full Solution for Page (Header, Content) In my case I have a page with my.component.scss :host {
display: flex;
flex-direction: column;
height: 100%;
}
ion-content {
overflow-y: auto;
&::part(scroll) {
overscroll-behavior-y: unset;
}
} Not yet fully tested what happens to this page component in other uses such as viewing it as normal page, modal, etc. In my case, however, it works great for the popover. Update: No problems yet with modals, etc. Ionic 5 |
Thanks @infacto this solution worked well for me on ionic v5.2.3 |
There is easier way just use scrollY="false" on ion-content of popover element. Reference : https://www.youtube.com/watch?v=ZCrQjk6PdK0&t=275s |
Hi everyone, It looks like this was fixed in Ionic 5.9.2 but we missed this issue when merging the PR: #24294 I recommend updating to the latest version of Ionic to receive this fix. If you are still running into problems, please open a new issue. Thanks! |
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 version:
[x] 4.0.0-rc.0
Current behavior:
I have a long list in my root component (HomeComponent) which each has a button to open a popover to choose a category. Problem is, if I use ion-content for the PopoverComponent (CategoryPicker), the popover can't be scrolled anymore. If I don't wrap the PopoverComponents HTML code in ion-content, I can scroll the Popover, but if I try to overscroll in the popover, the background gets scrolled.
Expected behavior:
Popover open -> ONLY Popover should be scrollable, not the background or anything else
Steps to reproduce:
Related code:
Fab Button to open Category Picker
Method that creates and present Category Picker
Actual CategoryPicker Component (Commented out ion-content, it can be tried with or without it)
Other information:
I've made 2 videos.
This one shows the behavior with wrapper:
http://zeriouh.io/shared/withcontent.TRIM.mp4
This is the behavior without wrapper:
http://zeriouh.io/shared/withoutcontent.TRIM.mp4
Ionic info:
The text was updated successfully, but these errors were encountered: