Closed AlvaroHerrero closed 4 years ago
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. You have two issues in your code:
Your page's ngFor content should not be placed in ion-infinite-scroll-content
. As per the docs, this component is used to display the infinite scroll spinner: https://ionicframework.com/docs/api/infinite-scroll-content.
Your page has two ion-infinite-scroll-content
components inside of an ion-infinite-scroll
. You only need one.
After resolving both of these issues, the reproduction you have provided now works for me.
Yes, it should be only one ion-infinite-scroll-content, and more important, place the content outside the ion-infinite-scroll. Thank you!
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: 5.1.1
Current behavior: ion-infinite-scroll´s ionInfinite event is only called once. Calling complete() on ion-infinite-scroll´s instance seems to work, but after that ionInfinite event is not called anymore.
Expected behavior: After calling complete() ionInfinite event should be enabled again.
Related Code: https://github.com/AlvaroHerrero/ionic5-infinitescroll-bug
-->
Ionic info: