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

[BUG] Wrong endReached index passed from GroupedVirtuoso #985

Open
execto opened this issue Sep 19, 2023 · 0 comments
Open

[BUG] Wrong endReached index passed from GroupedVirtuoso #985

execto opened this issue Sep 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@execto
Copy link

execto commented Sep 19, 2023

There is wrong endReached index passed from GroupedVirtuoso.

Reproduction:
https://codesandbox.io/s/epic-brattain-np7dsp?file=/App.js

To Reproduce
Go to the end of list, and see console output. There is last index of element is 522 (logged by endReached callback), but real item index is 499. GroupedVirtuoso counts also group headers as items.

Expected behavior
Pass to endReached last real item index.

Environment
Web: Google Chrome Version 116.0.5845.110 (Official Build) (64-bit)
Forked from here https://virtuoso.dev/scroll-to-group/ and only added endReached callback

@execto execto added the bug Something isn't working label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant