PeachScript / vue-infinite-loading

An infinite scroll plugin for Vue.js.
https://peachscript.github.io/vue-infinite-loading/
MIT License
2.67k stars 369 forks source link

fix #254: #255

Open kvanska opened 5 years ago

kvanska commented 5 years ago

sometimes when using nuxt the elm.parentNode is null and vue-infinite-loading makes error

this is a simple fix to set scrollparent to window if elm.parentNode is null

254

PeachScript commented 4 years ago

@kvanska thanks for your PR! I have no experience to use Nuxt.js, can we not get correct body element when using it?

cain commented 4 years ago

Hey @PeachScript any updates on this fix?

Zac-Zajdel commented 1 year ago

Thanks @kvanska this solves my issue.

For anyone out there not working on a Nuxt/Vue 2 repository, I would recommend https://vueuse.org/core/useInfiniteScroll/