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

New data doesn't get fetched when there´s no scrollbar #294

Open
gonzalo-piria opened this issue Apr 12, 2022 · 4 comments
Open

New data doesn't get fetched when there´s no scrollbar #294

gonzalo-piria opened this issue Apr 12, 2022 · 4 comments

Comments

@gonzalo-piria
Copy link

When the initial data does not fill the page (resulting in not having a scrollbar) the loader is displayed, but new data is not being fetched as there's no scroll event to trigger the loadMore callback.

@yuujitaka
Copy link

same here ;(

@coolcorexix
Copy link

coolcorexix commented Sep 6, 2022

thank you for describe the issue perfectly
the way I fixed it is to give the inner component some minHeight. For example:

            style={{
              minHeight: '80vh',
            }}

@mohsenShakiba
Copy link

same, the next should be called when the infinite scroll div's height is less than the page height or something like that.

@coolcorexix
Copy link

Just get the error again, how I fix it is to make the scroll area alway a slightly higher than the parent by:

height: 101%;

Sometimes it works if the DOM structure is simple enough

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