Skip to content

Conversation

nicolethoen
Copy link
Contributor

When React elements (like ) were passed in the columns prop, they were being wrapped in an additional element, causing invalid DOM structure with nested elements.

This fix checks if a column is already a React element and renders it directly without wrapping it in an additional Th component.

Closes #764

Generated with Claude Code

…mponents

When React elements (like <Th>) were passed in the columns prop, they were
being wrapped in an additional <Th> element, causing invalid DOM structure
with nested <th> elements.

This fix checks if a column is already a React element and renders it
directly without wrapping it in an additional Th component.

Fixes patternfly#764

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@patternfly-build
Copy link

patternfly-build commented Oct 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SkeletonTableHeader: DOM validation error -- <th> as a descendant of <th>
2 participants