-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
useVirtualList sometimes missing elements #2065
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The code doesn't seem to have been changed since then, so I'd assume this bug is still present |
Could this issue be reopened? I can't use the Vueuse virtual list due to this. |
I can confirm this is definitely not fixed yet. I think I also see where the bug is, so I will try to submit a PR. |
Describe the bug
With certain combinations of overscan and low element counts, it can happen that the virtual list is simply missing a few elements.
For example, I tweaked the demo to have an overscan of 1, and the demo list to have 3 elements.
However, it only ends up displaying 2 elements, with no way of seeing the 3rd one.
Reproduction
https://github.com/stefnotch/vueuse/blob/bug-virtual-list/packages/core/useVirtualList/demo.vue
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: