Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
fix: article page loads more at the bottom when no more articles [SPM…
Browse files Browse the repository at this point in the history
…VP-6937]
  • Loading branch information
arielllin committed Dec 26, 2023
1 parent e9671a3 commit 655b438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/karbon/src/runtime/components/InfiniteScroll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (process.client) {
</CustomFieldScope>
</slot>
</template>
<slot v-if="loading" name="loading">Loading...</slot>
<slot v-if="loading" name="loading" />
</component>
</ClientOnly>
</template>
2 changes: 1 addition & 1 deletion packages/karbon/src/runtime/composables/load-more.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useLoadMore<T>(GeneratorSource: () => AsyncGenerator<T>, option?

if (done) {
preload ? loadMoreEvent.trigger([value]) : loadMoreEvent.trigger(value)
list.push(value)
value && list.push(value)
loading.value = false

isDone.value = true
Expand Down

0 comments on commit 655b438

Please sign in to comment.