Skip to content

Commit

Permalink
fix(VInfiniteScroll): do not emit load event if status is empty (#19764)
Browse files Browse the repository at this point in the history
fixes #18895

Co-authored-by: John Leider <john@vuetifyjs.com>
  • Loading branch information
elkofy and johnleider authored May 7, 2024
1 parent e577b5a commit b7a4c36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const VInfiniteScroll = genericComponent<VInfiniteScrollSlots>()({
if (props.mode !== 'manual' && !isIntersecting.value) return

const status = getStatus(side)
if (!rootEl.value || status === 'loading') return
if (!rootEl.value || ['empty', 'loading'].includes(status)) return

previousScrollSize = getScrollSize()
setStatus(side, 'loading')
Expand Down

0 comments on commit b7a4c36

Please sign in to comment.