question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ion-refresher fired multiple times

See original GitHub issue

Ionic version: 4.1.0

ion-refresher fired multiple times when I use ion-list with ngFor

<ion-content>
  <ion-refresher slot="fixed" (ionRefresh)="getItems($event)">
    <ion-refresher-content
      pullingIcon="arrow-down"
      pullingText="Pull to refresh"
      refreshingSpinner="circles"
      refreshingText="Refreshing...">
    </ion-refresher-content>
  </ion-refresher>

  <ion-list no-padding *ngFor="let item of items">
    <ion-item>
      {{item.name}}
    </ion-item>
  </ion-list>
</ion-content>

Same error in documentation

ion-refresher documentation

video

I click on the top, pull down -> ion-refresher fired

Move to bottom click and move to the top -> refresher fired again.

Move mouse cursor (without click) -> refresher fired multiple times

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:33 (8 by maintainers)

github_iconTop GitHub Comments

43reactions
traziusbiztestcommented, Mar 21, 2019

Temporary solution:

  completeRefresh(event) {
    event.target.disabled = true;
    event.target.complete();
    setTimeout(() => {
      event.target.disabled = false;
    }, 100);
  }
4reactions
liamdebeasicommented, Mar 20, 2019

Thanks for the additional info everyone! I was able to reproduce this issue. We will look into this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-refresher fired multiple times · Issue #17784 - GitHub
Move to bottom click and move to the top -> refresher fired again. Move mouse cursor (without click) -> refresher fired multiple times....
Read more >
Ionic refresher get's fired automatically on page load?
Ionic refresher seems to be refreshing the page without being manually calling the doRefresh. I would like the refresher to only execute ...
Read more >
ion-refresher: Pull-to-Refresh Page Content on Ionic Apps
ion -refresher provides pull-to-refresh functionality on content components. Learn how this lets users pull down on a page using touch to retrieve more...
Read more >
Pull to refresh - Ionic 5 Full Starter App
The pull-to-refresh pattern lets a user pull down on a list of data using touch in order to retrieve more data. This is...
Read more >
Refresher - Ionic API Documentation
Pages can then listen to the refresher's various output events. The refresh output event is fired when the user has pulled down far...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found