Ionic2 infinite scroll with filtered items


#1

I am using <ion-infinite-scroll> and scroll to number of pages and it’s working fine. However, when I filter the list, the list of items get narrowed down, then I cannot do the Inifinite Scroll anymore. I guess the issue is the <ion-infinite-scroll> remembers its position, so when the list get narrowed down, the position of the <ion-infinite-scroll> is still bigger than the high of the list, that’s why the <ion-infinite-scroll> is not triggered. Anyone has the same issue?


#2

Would you be able to isolate this into a small codepen?

http://codepen.io/tlancina/pen/EPBdVE/


#3

So Ionic2 Codepen games are now possible / easy, it seems - great news, thanks!


#4

Same issue here - any solution ?

Action 1) Initial list load - all good. Load few pages - all good (approx 30 items).
Action 2) Do filter of that list which will display less results then before filtering (approx 10 items). No more infinite scroll. Event isn’t fired at all.

I followed this document:

http://ionicframework.com/docs/v2/api/components/infinite-scroll/InfiniteScroll/


#5

I’ve got exactly the same issue.


#6

I’ve updated to beta 4 and it works as expected. For me this is resolved :wink:


#7

True:joy: InfiniteScroll works fine now.