I am trying to implement ion-infinite-scroll in my ionic 3 application. i need to implement it inside a ion-list. i made my scroll-content overflow:hidden and make ion-list overflow-y: scroll.
My HTML Code:
<ion-content fullscreen padding>
<ion-list>
<ion-item *ngFor="let passanger of passangers" (click) = "gotoPassangerDetails(passanger.bookingNo)">
<div class = "row">
<div class = "col">{{passanger.lastName}}</div>
<div class = "col">{{passanger.firstName}}</div>
</div>
</ion-item>
<ion-infinite-scroll style="background-color: white" (ionInfinite)="doInfinite($event)" infinite-scroll-parent="true">
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading more data..." position="top" ></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-list>
My CSS
page-customer-list {
.scroll-content {;
height: -webkit-fill-available;
overflow: hidden;
}
ion-content{
.row{
.col.center{
text-align: center;
}
font-size: 14px;
}
ion-list{
overflow-y: scroll;
height: 75%;
}
}}
I am not able to get the trigger on doInfinite. if i am removing overflow:hidden in scroll -content it is working. but my whole page is scrolling. i need to scroll only the content inside ion-list.