Open packytagliaferro opened 7 years ago
You are describing the default behaviour
infinite-scroll-immediate-check
Boolean(default = true) - indicates that the directive should check immediately after bind. Useful if it's possible that the content is not tall enough to fill up the scrollable container.
use infinite-scroll-immediate-check=false
on your component to disable the check.
You also never set this.busy = false;
which is why your callback never runs again.
@ollieBaker what exactly do you mean by "check immediately after bind"?
Do you mean:
a) check the scroll distance immediately after bind, and if it's not at the bottom, do nothing.
or
b) Ignore the scroll distance and immediately trigger the handler function after binding .
@raniesantos I was quoting the documentation (a year ago):
"Boolean(default = true) - indicates that the directive should check immediately after bind. Useful if it's possible that the content is not tall enough to fill up the scrollable container." from https://github.com/ElemeFE/vue-infinite-scroll
I believe the answer is 'a'.
Basically what is happeneing is the method gets called on page load and then never again. I have my script like so:
Not sure if its due to some css thing (I have see overflow: auto; messing things up but I dont have this set on any containers. )