Skip to content

[RAC] Can not create a reusable wrapper with <Table> #5281

Open
@sebald

Description

@sebald

Provide a general summary of the issue here

Using nested columns does not work when creating a "reusable wrapper" for the <Column> component.

🤔 Expected Behavior?

Should not throw an error and show a table with nested column headers.

😯 Current Behavior

Throws the following error:

A table must have at least one Column with the isRowHeader prop set to true

Moving isRowHeader to the parent column will throw a different error:

Cannot read properties of undefined (reading 'key')

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Here is a Stackblitz that shows the error. Code was directly copy/pasted from the docs :)

https://stackblitz.com/edit/stackblitz-starters-9ddrwv?file=src%2FTable.tsx

Version

1.0.0-beta.1

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

Labels

RACbugSomething isn't working

Type

No type

Projects

  • Status

    🔬 To Investigate / Verify

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions