Expanded rows become hidden within the table
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28.4k
- Forks
- 3.6k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 10
Description
Describe the bug
When expanding a row, the new added rows will hide some of the content, if not all.
It seems that the pageSize has some impact on what's currently being rendered.
Your minimal, reproducible example
https://github.com/TanStack/table/tree/main/examples/react/expanding
Steps to reproduce
- Run the example
expanding - Expand last row
- Sub rows won't be visible
Expected behavior
As a user, I expect to be able to see the sub-rows, regardless the page size limit.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- macOS
react-table version
8.9.3
TypeScript version
5.0.4
Additional context
Also using
- @tanstack/react-query": "^4.29.13",
- @tanstack/react-query-devtools": "^4.29.13"
- @tanstack/react-table": "^8.9.3"
- @tanstack/react-virtual": "^3.0.0-beta.54"
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 running the React expanding example linked in the issue and reproduce the problem by expanding the last row with different page sizes. Trace how expanded rows are rendered and determine why sub-rows are hidden; done means the sub-rows remain visible regardless of the page size.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100