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
Current behavior:
ion-refresher is glitchy with OnPush change detection strategy. The arrow and the pulling text doesn't appear, and on the rare occasion it appears, the arrow doesn't change direction. The div with the class refresher-pulling stays display: none.
Edit: made a plunker that illustrates the bug. In my project I was marking the component for change detection manually at specific points, that's why my description differs slightly from the behavior of the plunker.
Expected behavior:
Same as with Default change detection strategy. Arrow and pulling text appear as I pull down, the arrow changes direction when I pulled far enough.
Thanks! This workaround made the pulling icon appear again, but after the refresh finishes the spinner keeps running in the background, just like on your plunker. Did you do something else to solve this too?
Thanks for the issue! This issue is being closed due to inactivity. 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.
Activity
ibnclaudius commentedon Dec 13, 2016
I'm having the same problem with the refresher using OnPush change detection strategy. Did you find any workarounds?
horo42 commentedon Dec 13, 2016
This solved the problem for me.
<ion-refresher (ionRefresh)="doRefresh($event)" (ionPull)="{}">ibnclaudius commentedon Dec 14, 2016
Thanks! This workaround made the pulling icon appear again, but after the refresh finishes the spinner keeps running in the background, just like on your plunker. Did you do something else to solve this too?
horo42 commentedon Dec 14, 2016
You should call the appropriate methods of ChangeDetectorRef if you use the OnPush strategy.
http://plnkr.co/edit/xBcBT1Jt5OvJNBYd3wGO
ibnclaudius commentedon Dec 14, 2016
Thanks again! Now it's working perfectly!
Manduro commentedon Apr 10, 2017
Still an issue in 3.0.1. The
(ionPull)="{}"hack works nicely.ionitron-bot commentedon Apr 10, 2018
Thanks for the issue! This issue is being closed due to inactivity. 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.
Thank you for using Ionic!