PeachScript / vue-infinite-loading

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

Uncaught (in promise) TypeError: Cannot read property 'error' of undefined #227

Open handhikadj opened 5 years ago

handhikadj commented 5 years ago

Version

2.4.3

Vue.js version

2.6.3

Reproduction Link

https://ykmv0nykk9.codesandbox.io/

Steps to reproduce

  1. press a button. you will get the error
  2. scroll until it reaches "no more data" (around id of 200th)
  3. switch to another button and try to scroll. you will be getting the v-dialog not scrollable

What is Expected?

not error. scrollable on both button. runs smoothly

What is actually happening?

get the error and cannot scroll anymore if a button reaches "no more data"

Remarks

I'm using vuetify, vuex and this package

Tested on: Google Chrome v72.0.3626.96 (Official Build) (64-bit)

image

PeachScript commented 5 years ago

Could you provide your template where to bind the @infinite event?

handhikadj commented 5 years ago

It's in the App.vue. this is the editor view: https://codesandbox.io/s/ykmv0nykk9