TanStack / TanStack/table

rowSpan doesn't work with useFlexLayout and useResizeColumns

Open
#4,785 0 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

I have this set up here with working rowSpan for the top left cell and row header cells.

Screenshot 2023-03-30 at 3 08 59 AM

I'm trying to use useResizeColumns as well, and looks like it doesn't work without useFlexLayout. But the moment I include useFlexLayout, rowSpan doesn't work anymore. Same for useBlockLayout and useAbsoluteLayout.

Screenshot 2023-03-30 at 3 09 40 AM
Your minimal, reproducible example

https://codesandbox.io/s/frosty-cerf-hx5xh2?file=/src/App.js

Steps to reproduce
  1. Open the Code Sandbox
  2. Uncoment line 78 // useFlexLayout
Expected behavior

I'd like to have rowSpan still working with useFlexLayout or useBlockLayout or useAbsoluteLayout

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS, Chrome, react 16.8.6

react-table version

v7.8.0

TypeScript version

No response

Additional context

No response

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 with the linked CodeSandbox and /src/App.js, especially line 78 where useFlexLayout is enabled. Compare rowSpan behavior with useFlexLayout, useBlockLayout, and useAbsoluteLayout against the working setup; done means rowSpan remains functional while column resizing is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.