TanStack / TanStack/table

when i useing thead Grouping. only set subHeader enableColumnFilter work, parent Column didn't work

Open
#5,710 5 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

TanStack Table version

v8.16.0

Framework/Library version

v18.2.0

Describe the bug and the steps to reproduce it
  1. go to the grouping example (https://tanstack.com/table/latest/docs/framework/react/examples/grouping)
  2. set {enableColumnFilter: true} for parentColumn and subParent
  3. wirte the debug code for or console.log(header.column.getCanFilter())
  4. that result was false
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/sandbox/modest-lederberg-lzppdp

Screenshots or Videos (Optional)
image image image
Do you intend to try to help solve this bug with your own PR?

None

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 grouping example linked in the issue and reproduce the behavior in the provided CodeSandbox. Inspect the output and header.column.getCanFilter() for the parent column, subParent, and subheaders; done means the intended filter capability is consistent with enableColumnFilter for grouped columns and the behavior is covered by a regression test.

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.