Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firing without reaching bottom #144

Open
willPHPwork opened this issue Aug 20, 2020 · 4 comments
Open

Firing without reaching bottom #144

willPHPwork opened this issue Aug 20, 2020 · 4 comments

Comments

@willPHPwork
Copy link

willPHPwork commented Aug 20, 2020

Firing with each scroll regardless of page height.

<template>
	<div class="business-list-wrapper">
		<div class="dd" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="5">
			<div 
			v-for="(d, i) in data" 
			:key="i"
			style="height:300px"
			>
			{{ d.name }}
			</div>
		</div>
	</div>
</template>
<script>
let count = 0;

export default {
  data() {
  	return {
  		data: [],
    	busy: false
  	}
  },
  methods: {
    loadMore: function() {
      this.busy = true;

      setTimeout(() => {
        for (var i = 0, j = 10; i < j; i++) {
          this.data.push({ name: count++ });
        }
        this.busy = false;
      }, 1000);
    }
  }
}
</script>

@devapurva
Copy link

I'm facing the same issue, loadMore is getting infinitely called.

@jonalxh
Copy link

jonalxh commented Oct 1, 2020

Same here

@devapurva
Copy link

@Leopoldthecoder Please assign this issue to me. I'm trying to resolve this.

@abdullah-336
Copy link

I'm facing the same issue here also, loadMore method is getting infinity called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants