Skip to content

Commit

Permalink
Fixed: infinite scroll issue when used with searchbar(hotwax#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Apr 16, 2024
1 parent 7749fa6 commit 8828974
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</ion-item> -->
</div>

<ion-infinite-scroll @ionInfinite="loadMoreProducts($event)" threshold="100px" :disabled="!isCatalogScrollable">
<ion-infinite-scroll @ionInfinite="loadMoreProducts($event)" threshold="100px" :disabled="!isCatalogScrollable" :key="queryString">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="$t('Loading')" />
</ion-infinite-scroll>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</div>
</div>

<ion-infinite-scroll @ionInfinite="loadMoreOrders($event)" threshold="100px" id="infinite-scroll" :disabled="!isScrolleable">
<ion-infinite-scroll @ionInfinite="loadMoreOrders($event)" threshold="100px" id="infinite-scroll" :disabled="!isScrolleable" :key="query.queryString">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="$t('Loading')"></ion-infinite-scroll-content>
</ion-infinite-scroll>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/products.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<ion-badge slot="end" color="success">{{ product.doclist.numFound }} {{ $t("pieces preordered") }}</ion-badge>
</ion-item>

<ion-infinite-scroll @ionInfinite="loadMoreProducts($event)" threshold="100px" id="infinite-scroll" :disabled="!isScrolleable">
<ion-infinite-scroll @ionInfinite="loadMoreProducts($event)" threshold="100px" id="infinite-scroll" :disabled="!isScrolleable" :key="queryString">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="$t('Loading')"></ion-infinite-scroll-content>
</ion-infinite-scroll>
</div>
Expand Down

0 comments on commit 8828974

Please sign in to comment.