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 <[email protected]>
@patternfly-build
Copy link

patternfly-build commented Oct 3, 2025

@nicolethoen nicolethoen merged commit 4c7688e into patternfly:main Oct 9, 2025
6 checks passed
Copy link

github-actions bot commented Oct 9, 2025

🎉 This PR is included in version 6.4.0-prerelease.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants