Skip to content

Commit 237734e

Browse files
committed
Fix the callback cannot be called automatically after reset
1 parent 5462034 commit 237734e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/InfiniteLoading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
this.isNoMore = false;
9898
this.isNoResults = false;
9999
this.scrollParent.addEventListener('scroll', this.scrollHandler);
100-
this.scrollHandler();
100+
setTimeout(this.scrollHandler, 1);
101101
},
102102
},
103103
destroyed() {

0 commit comments

Comments
 (0)