my issues with useVirtualizer with tanstack/react-table to sticky <thead>
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 466
- Avg merge
- 2d 31m
- Merged PRs (30d)
- 13
Description
Describe the bug
Describe the bug:
iam using useVirtualizer with tanstack/react-table to sticky , but iam scrolling to index 90 sticky not work
Demo live:
https://codesandbox.io/p/sandbox/keen-moser-k3g48j?embed=1&file=%2Fsrc%2Fmain.tsx%3A7%2C14
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/keen-moser-k3g48j?embed=1&file=%2Fsrc%2Fmain.tsx%3A7%2C14
Steps to reproduce
step -> scrolling to index 90 sticky not work
Expected behavior
Expected behavior : when scrolling sticky work
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
OS: Macos
Chorme: 116.0.5845.187 (Official Build) (arm64)
tanstack-virtual version
"@tanstack/react-virtual": "3.0.0-beta.60",
TypeScript version
No response
Additional context
"@tanstack/react-table": "^8.7.9",
"@tanstack/react-virtual": "3.0.0-beta.60",
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by opening the linked CodeSandbox at src/main.tsx around lines 7-14 and reproduce the failure by scrolling to index 90. Compare the useVirtualizer and tanstack/react-table setup with the expected sticky behavior; done means the header remains sticky while scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100