TanStack / TanStack/table

Expanded rows become hidden within the table

Open
#4,970 3 comments 0 reactions 0 assignees View on GitHub

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
  1. Run the example expanding
  2. Expand last row
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.