Skip to content

bug: ion-infinite-scroll not emit after changing to another tab and back #21440

@caothuong

Description

@caothuong

Ionic version:
"@ionic/angular": "^4.7.1",
"@angular/core": "~8.1.2",
"@angular/forms": "~8.1.2",

I have three tabs use the one content together as bellow:
<ion-content> <ng-container [ngSwitch]="true"> <ng-container *ngSwitchCase="selectedTab == constant.ReminderpanelValue.Overview"> <app-reminder-overview [reminder]="reminders"></app-reminder-overview> </ng-container> <ng-container *ngSwitchCase="selectedTab == constant.ReminderpanelValue.Overdue || selectedTab == constant.ReminderpanelValue.Today || selectedTab == constant.ReminderpanelValue.Future"> <ion-refresher slot="fixed" (ionRefresh)="refresh($event)"> <ion-refresher-content pullingText="{{ 'COMMON.PULL_TO_REFRESH' | translate }}" refreshingSpinner="crescent"> </ion-refresher-content> </ion-refresher> <app-reminder-list [reminders] = "reminder?.Reminders" > </app-reminder-list> <ion-infinite-scroll threshold="200px" (ionInfinite)="loadMore($event)"></ion-infinite-scroll> </ng-container> </ng-container> </ion-content>

loadMore(event) {
this.getReminder().finally(() => event.target.complete());
}

the first open screen that it work but when switch to another tab then ionInfinite event not effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions