ionic-framework: ion-infinite-scroll is broken
Ionic version: (check one with “x”) [ ] 1.x [x] 2.x
I’m submitting a … (check one with “x”) [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
If we include ion-infinite-scroll in a Page, then the page content height is broken.
A blank white space is added at bottom of the page.
Expected behavior:
if a n user scroll to teh end it should triger the ionInfinite event.
Steps to reproduce:
Related code:
<ion-infinite-scroll (ionInfinite)="getMoreArticles($event)">
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading...">
</ion-infinite-scroll-content>
</ion-infinite-scroll>
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.12
OS: macOS Sierra
Node Version: v7.2.0
Xcode version: Xcode 8.2.1 Build version 8C1002
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 37 (6 by maintainers)
Commits related to this issue
- fix(infinite-scroll): regression in #8099 references #10889 — committed to ionic-team/ionic-framework by manucorporat 7 years ago
- fix(scroll): scroll issues in UIWebView fixes #11081 fixes #10976 fixes #10966 fixes #10936 fixes #11051 fixes #10889 — committed to ionic-team/ionic-framework by manucorporat 7 years ago
- fix(scroll): scroll issues in UIWebView fixes #11081 fixes #10976 fixes #10966 fixes #10936 fixes #11051 fixes #10889 — committed to ionic-team/ionic-framework by manucorporat 7 years ago
- fix(scroll): scroll issues in UIWebView fixes #11081 fixes #10976 fixes #10966 fixes #10936 fixes #11051 fixes #10889 — committed to ionic-team/ionic-framework by manucorporat 7 years ago
Updated App to ionic3, sadly problem is still happening
I’m experiencing this issue as well. The
ion-infinite-scrollworks fine in chrome, but not on an iOS device.iOS: 10.2.1 Ionic Framework: 2.3.0
When scrolling to the bottom of
ion-content, there’s a blank section of 84 pixels. I assuming this is where the ion-infinite spinner would normally show.I tried adding/removing the
enabledproperty on theion-infinite-scrollinput. This had no effect.Hello, thanks for opening an issue with us! This issue was caused by a regression related to scroll events in ionic 2.3.0. This has since been fixed and will be in the 3.0 release. Sorry about the hassle!
I have the same issue after upgrading to 2.3.0. downgrading fixes the issue
I have same issue after upgrading to 2.3.0 my ionic info:
it works when the initial list is short(all in one page), but if the list is longer than on page, ionInfinite won’t fire when reach the bottom of page.
@jgw96 what about a 2.3.1 with this fix?
@jgw96 does this mean that we have to choose to either use 2.2.0 or wait until 3 is released?
I have a similar issue that I think is related. Since upgrading to 2.3.0 ion-infinite is not working, but on iOS only.
Steps to reproduce:
ionic start testinfinite blank --v2This are the scenarios I have tested (passed is represented by a check mark):
I experienced the same issue but with reversed infinite scroll. It triggers the function when scrolling to the top but automatically change the state from
disabledtoenabledafter a while (about 20 seconds) or when change view and then come back. Theenabledstate create an empty space (84px height) for the infinite scrolling component.Related code:
i have the same issue. infinite scroll fires multiple events
same problem ionic framework: ionic-angular 3.6.0
@ryaa
It’s working again in last release https://github.com/driftyco/ionic/releases/tag/v3.0.1
The only upgrade is package.json and those lines in app.module.ts
import { BrowserModule } from '@angular/platform-browser';and
package.json looks like this :
Got some advise from North McCormick on Slack to use wkwebview https://github.com/driftyco/cordova-plugin-wkwebview-engine#installation-instructions
And can confirm that its working as a temporary workaround
@djereg already tried that yesterday and it is not working for ios
Again tried exactly my steps as per my previous comment (new app with ionic3 and add ion-infinite) and its still not working.
Does anyone have a hack for this?
Yes, just saw the release an hour ago and am in the process of upgrading using the migration guide. Will hopefully be able to put the result i get here.
Also experiencing this issue.
Yes, same problem here. Ion-infinite is not working on iOS emulator or real device.