ElemeFE / vue-infinite-scroll

An infinite scroll directive for vue.js.
2.86k stars 416 forks source link

v-infinite-scroll loadMore function was called when in another component #121

Open hoangtuan151 opened 5 years ago

hoangtuan151 commented 5 years ago

Thaks for your awesome work!

I'm using v-infinite-scroll in a component of the first tab, when I click route to second tab, and scroll to bottom, the "loadMore" function was called automatically.

What I expected here is that the "loadMore" function should be call only when scroll at the first route.

Here is my pen: https://codepen.io/hoangtuan/pen/YMjNmV