You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
When using ion-infinite-scroll
On the last call to ionInfinite(event)
set event.target.disabled = true
as there is no more data
Data set changes so there is now more data
use ViewChild to get a reference to InfiniteScroll in TS
set this.infiniteScroll.disabled = false
The value is correctly set
I see the "fetching new data" come up in the view as expected
ionInfinite event never fires so new data is never loaded.
Seems like when set the disabled subscriptions to observable are removed but they are not recreated when set back to enabled again.
Steps to Reproduce
Steps to reproduce the behavior:
follow the example code in the ionic v4 docs for angular infinitescroll.
have an initial dataset, scroll until the last item is added and disable infinitescroll
add some more data to the dataset (or completely replace the dataset)
use ViewChild to access InfiniteScroll from TS (again just as per the docs example)
set this.infiniteScroll.disabled = false;
Scroll down until infinite scroll triggers
see the loading content displays correctly
see that ionInfinite event never fires
Related Code
Just follow the example in the v4 docs
Expected Behavior
when set to ionfinitescroll disabled = false ionInfinite lifecycle event fires as expected
The text was updated successfully, but these errors were encountered:
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 Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
When using ion-infinite-scroll
On the last call to ionInfinite(event)
set event.target.disabled = true
as there is no more data
Data set changes so there is now more data
use ViewChild to get a reference to InfiniteScroll in TS
set this.infiniteScroll.disabled = false
The value is correctly set
I see the "fetching new data" come up in the view as expected
ionInfinite event never fires so new data is never loaded.
Seems like when set the disabled subscriptions to observable are removed but they are not recreated when set back to enabled again.
Steps to Reproduce
Steps to reproduce the behavior:
follow the example code in the ionic v4 docs for angular infinitescroll.
have an initial dataset, scroll until the last item is added and disable infinitescroll
add some more data to the dataset (or completely replace the dataset)
use ViewChild to access InfiniteScroll from TS (again just as per the docs example)
set this.infiniteScroll.disabled = false;
Scroll down until infinite scroll triggers
see the loading content displays correctly
see that ionInfinite event never fires
Related Code
Just follow the example in the v4 docs
Expected Behavior
when set to ionfinitescroll disabled = false ionInfinite lifecycle event fires as expected
The text was updated successfully, but these errors were encountered: