Skip to content

ion-refresher pull down is blank in v2 #7914

Closed

Description

@Barathwaja

In ionic 2 beta 11 , pull to refresh icon and text are not visible sometimes.. why ?? please check the below attachments as proof..
below image is the output comparison .. works sometimes and sometimes it doesn't..

refresher

In this below image, left side is the HTML code and right side is the TS code.

code

Activity

  1. Barathwaja commented on Aug 31, 2016

    @Barathwaja
    Author

    tested in device - Android (Moto E2)
    With refresh icons at one time.

    with refresh

    No icons after switching tabs and refreshing again.

    without refresh

  2. Manduro commented on Aug 31, 2016

    @Manduro
    Contributor

    I can confirm this issue. It's happening in the browser (chrome) here as well. In a tab with an ion-list, refresher and infinite scroll.

  3. Barathwaja commented on Sep 1, 2016

    @Barathwaja
    Author

    @Manduro the above picture is taken from real device not in chrome device toolbar. Soo... ?? !!! I've specifically mentioned the device as Moto E2 on the first line.

  4. Manduro commented on Sep 1, 2016

    @Manduro
    Contributor

    So it's also happening in the browser, not only on a real device. That makes the issue easier to debug.

  5. jabas06 commented on Sep 1, 2016

    @jabas06

    I've the same issue. My first tab has a refresher and an infinite scroll. When navigating to second tab and going back to the first one, both refresher and infinite scroll containers got blank.

  6. Barathwaja commented on Sep 1, 2016

    @Barathwaja
    Author

    @Manduro my functionality works actually :P .,. oly in UI its not coming.. @jabas06 hmm yep i dont know why.. @mhartington can u check this out ?? even jabas06 has this issue..

  7. mhartington commented on Sep 1, 2016

    @mhartington
    Contributor

    This was asked in slack the other day and I was unable to reproduce. Tested on ios/android/browser. I was unable to reproduce

  8. Manduro commented on Sep 1, 2016

    @Manduro
    Contributor

    Yes it's functioning for me as well. Just not visible most of the time.

  9. jgw96 commented on Sep 1, 2016

    @jgw96
    Contributor

    Hello all! Unfortunately I am having an issue reproducing this issue. Would anybody be able to post a repo with a minimal example of this issue? Thanks!

  10. added
    needs: reply
    and removed on Sep 1, 2016
  11. ibcooley commented on Sep 1, 2016

    @ibcooley

    able to produce a (minor) fix on my local builds by adding the following css:

    ion-refresher:not([style]) {
        top: 56px;
    }
    

    Maybe this helps someone else?

    also, able to consistently reproduce on a page (before dragging down) by doing the following:

    @ViewChild(Refresher) refresher: Refresher;
    
    ionViewDidEnter() {
       (<any>this.refresher)._beginRefresh();
    }
    

    Also, i'm wondering if there should be a mechanism to programatically call refresh, instead of accessing private functions.

  12. jabas06 commented on Sep 1, 2016

    @jabas06

    I created this plunker to reproduce the issue. The problem arises only if I display a loader on the second tab.
    [http://plnkr.co/edit/T5rOxVBdC0Z7vd4EECGC?p=preview]

    Steps:

    1. Test refresher and infinite scroll. Everything works well
    2. Navigate to second tab
    3. Wait for the loader to dismiss
    4. Go back to first tab
    5. Test refresher and infinite scroll. Containers got blank :(
  13. Barathwaja commented on Sep 5, 2016

    @Barathwaja
    Author

    @jgw96 anything ??

  14. removed
    needs: reply
    on Sep 5, 2016
  15. Manduro commented on Sep 16, 2016

    @Manduro
    Contributor

    It seems to me the ion-refresher-content[state] does not update in some cases.

  16. Manduro commented on Oct 14, 2016

    @Manduro
    Contributor

    Still seeing this in RC.1.

    The ion-refresher-content[state] says inactive on load, does not change when pulling, then changes directly to refreshing and after that stays at completing.
    It should be: inactive - pulling - ready - refreshing - completing - inactive.

    Also the ion-refresher does not get the refresher-active class and a top: ...px until it is refreshing for the first time.

  17. maxtuzz commented on Oct 19, 2016

    @maxtuzz

    Also having this issue in RC.1.

  18. Manduro commented on Dec 23, 2016

    @Manduro
    Contributor

    Related? #9486

    Are any of you using OnPush while having this issue?

  19. jgw96 commented on Dec 29, 2016

    @jgw96
    Contributor

    Hello all, is this still an issue in rc4? I cannot seem to reproduce this issue with any of my RC4 test apps. Thanks!

  20. cleitonjar commented on Apr 8, 2017

    @cleitonjar

    @ibcooley The "top" stayed dynamic now. android/ios/browser.
    your-page.ts
    @ViewChild(Refresher) refresher: Refresher;
    @ViewChild("header") header: any;

    ionViewDidLoad() {
    (this.refresher)._top = this.header.nativeElement.clientHeight + "px";
    (this.refresher)._beginRefresh();
    }

    your-page.html
    <ion-header #header>....
    ...
    <ion-refresher (ionRefresh)="onRefresh($event)">....

    Thanks!

  21. vikramkakar commented on May 12, 2017

    @vikramkakar

    screen shot 2017-05-12 at 1 42 34 pm
    Hi i have issue with ionRefresh
    If i have more then 6 or 7 data in list ion refersher is not working fine.

    my html code is this

    <div *ngIf="!loading">
    	<div *ngIf="!doctors.length" padding text-center>No doctors</div>
    	<ion-card *ngFor="let doctor of doctors" (click)="goToDoctorDetail(doctor.uid)" no-padding no-margin margin-bottom>
    		<ion-card-content *ngIf="doctor">
    

    Thanks
    screen shot 2017-05-12 at 1 43 34 pm

  22. jgw96 commented on May 18, 2017

    @jgw96
    Contributor

    Hello, all! I am going to close this as I cannot duplicate this issue in the latest version of Ionic. Thanks, everyone!

  23. ionitron-bot commented on Sep 2, 2018

    @ionitron-bot

    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.

  24. locked and limited conversation to collaborators on Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions