Skip to content

Fix #13638: Svelte 5: Custom element's default <slot> not created when n#17770

Open
danielalanbates wants to merge 1 commit intosveltejs:mainfrom
danielalanbates:fix/issue-13638
Open

Fix #13638: Svelte 5: Custom element's default <slot> not created when n#17770
danielalanbates wants to merge 1 commit intosveltejs:mainfrom
danielalanbates:fix/issue-13638

Conversation

@danielalanbates
Copy link

Fixes #13638

Summary

This PR fixes: Svelte 5: Custom element's default not created when no initial children are passed

Changes

.../internal/client/dom/elements/custom-element.js | 14 ++++++------
 .../no-initial-children-default-slot/_config.js    | 25 ++++++++++++++++++++++
 .../no-initial-children-default-slot/main.svelte   |  3 +++
 3 files changed, 35 insertions(+), 7 deletions(-)

Testing

Please review the changes carefully. The fix was verified against the existing test suite.


This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!

By submitting this pull request, I confirm that my contribution is made under the terms of the project's license (contributor license agreement).

@changeset-bot
Copy link

changeset-bot bot commented Feb 22, 2026

⚠️ No Changeset found

Latest commit: eaa5ef5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

Svelte 5: Custom element's default <slot> not created when no initial children are passed

1 participant