bug: Ionic Refresh & Infinite scroll in the same page doesn't work infinite scroll .
See original GitHub issueBug Report
Ionic version: [x] 4.x
Current behavior: If I have Ionic Refresh & Infinite scroll in the same page. The infinite scroll will not work. Keeps showing the first page.
If I remove the <ion-refresh>
the infinite scroll works, but I canβt refresh the page
Expected behavior: Be able to use both components in the same page.
Steps to reproduce:
Have ion-refresher & ion-infinite-scroll in the same page
Related code:
html
<ion-refresher slot="fixed" (ionRefresh)="loadAll($event)">
<ion-refresher-content>
{{loading }}
</ion-refresher-content>
</ion-refresher>
<ion-infinite-scroll threshold="20%" (ionInfinite)="loadMore($event)" >
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading...">
</ion-infinite-scroll-content>
</ion-infinite-scroll>
ts.
loadMore(event) {
this.page++;
this.loadAttended(event);
}
loadAll(event?) {
this.loading = 'Loading ...';
if (!this.alertAttended) {
this.loadNotAttended(event);
} else {
if (this.alertAttended === 'alertAns') {
this.resetLoadAttended(event);
} else {
this.loadNotAttended(event);
}
}
}
Other information:
Ionic info:
Ionic:
Ionic CLI : 5.4.14 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.6
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.20
@angular/cli : 8.3.20
@ionic/angular-toolkit : 2.1.1
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 13 other plugins)
Utility:
cordova-res (update available: 0.9.0) : 0.8.1
native-run : 0.3.0
System:
Android SDK Tools : 26.1.1 (/Users/mirg/Library/Android/sdk)
ios-sim : 8.0.2
NodeJS : v12.14.1 (/usr/local/Cellar/node@12/12.14.1_1/bin/node)
npm : 6.13.4
OS : macOS Catalina
Xcode : Xcode 11.3.1 Build version 11C504
βββββββββββββββββββββββββββββββββββββββββββββββββ
Ionic CLI update available: 5.4.14 β 5.4.16
Run npm i -g ionic to update
βββββββββββββββββββββββββββββββββββββββββββββββββ
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
bug: Ionic Refresh & Infinite scroll in the same page doesn't ...
Current behavior: If I have Ionic Refresh & Infinite scroll in the same page. The infinite scroll will not work. Keeps showing the...
Read more >Ionic There is a Bug? ion-refresher and ion-infinite-scroll
When the user scrolls to the end of the screen, $scope.loadMoreContent which is registered with on-infinite is triggered. The spinner shows, andΒ ...
Read more >Infinite scroll doesn't work correctly on ios - Ionic Forum
My issue is on iOS device: when I pull down to refresh, or I reached the inifinite scroll, the loading img (I mean...
Read more >ngx-infinite-scroll - Angular - npm
Start using ngx-infinite-scroll in your project by running `npm i ... been loaded (i.e. - when you refresh a page that has been...
Read more >overscroll-behavior - CSS: Cascading Style Sheets | MDN
By default, mobile browsers tend to provide a "bounce" effect or even a page refresh when the top or bottom of a page...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@liamdebeasi I am really sorry for bothering. This code is also working on my samsung 9. Maybe is something else in my own code.
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.