Skip to content

Commit

Permalink
Fixed: the case where loading label is not displayed when infinite sc…
Browse files Browse the repository at this point in the history
…rolling(#289)
  • Loading branch information
R-Sourabh committed Apr 20, 2024
1 parent 61b40b2 commit 69f596c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/views/FindFacilities.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<ion-infinite-scroll
@ionInfinite="loadMoreFacilities($event)"
threshold="100px"
v-show="isScrollingEnabled && isScrollable"
v-show="isScrollable"
ref="infiniteScrollRef"
>
<ion-infinite-scroll-content
Expand Down Expand Up @@ -259,6 +259,10 @@ export default defineComponent({
}
},
async loadMoreFacilities(event: any) {
// Added this check here as if added on infinite-scroll component the Loading content does not gets displayed
if(!(this.isScrollingEnabled && this.isScrollable)) {
await event.target.complete();
}
this.fetchFacilities(
undefined,
Math.ceil(
Expand Down
6 changes: 5 additions & 1 deletion src/views/FindGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<ion-infinite-scroll
@ionInfinite="loadMoreGroups($event)"
threshold="100px"
v-show="isScrollingEnabled && isScrollable"
v-show="isScrollable"
ref="infiniteScrollRef"
>
<ion-infinite-scroll-content
Expand Down Expand Up @@ -193,6 +193,10 @@ export default defineComponent({
}
},
async loadMoreGroups(event: any) {
// Added this check here as if added on infinite-scroll component the Loading content does not gets displayed
if(!(this.isScrollingEnabled && this.isScrollable)) {
await event.target.complete();
}
this.fetchGroups(
undefined,
Math.ceil(
Expand Down

0 comments on commit 69f596c

Please sign in to comment.