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

fix: table virtual scroll bug with missing items #1992

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

skokenes
Copy link
Contributor

@skokenes skokenes commented Nov 1, 2024

There is a bug in tanstack-virtual where if using max-height for a scroll container, measurement updates don't properly update cache and elements will be missing if the the total size ends up being under the max height of the container.
TanStack/virtual#869

This workaround is to set an arbitrarily large initial height for elements, which seems to avoid the bug where some items are not drawn.

@skokenes skokenes merged commit 8485b6f into main Nov 1, 2024
11 checks passed
@skokenes skokenes deleted the dashboard-table-virtual-scroll branch November 1, 2024 15:27
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

Successfully merging this pull request may close these issues.

1 participant