Skip to content

Conversation

davidpett
Copy link
Contributor

When using slots with h(null or h(undefined it would render <null> and <undefined> as elements. Instead we want to just render the children when it is a string or when it is using the jsx fragment.

if it is a named slot and that slot uses a fragment, assign it to a span with the slot attr.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@christian-bromann christian-bromann merged commit ae37bcc into stenciljs:main Jun 9, 2025
1 check passed
@davidpett davidpett deleted the dpett/support-fragment-slots branch June 9, 2025 16:18
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.

2 participants