Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$$slots is always empty in custom element #5594

Closed
half2me opened this issue Oct 26, 2020 · 1 comment · Fixed by #5619
Closed

$$slots is always empty in custom element #5594

half2me opened this issue Oct 26, 2020 · 1 comment · Fixed by #5619

Comments

@half2me
Copy link

half2me commented Oct 26, 2020

When I enable the customElement: true option to create a web component, $$slots always returns {} instead of the slots being used.

Example:

<svelte:options tag="my-wc"/>

<script>
$: console.log($$slots);
</script>

<slot name="foo"></slot>
<my-wc>
  <span slot="foo">Foobar</span>
</my-wc>

Svelte v3.29.4 using Rollup

Severity
Mostly annoying, I can work around it.

@Conduitry
Copy link
Member

This should be fixed now in 3.29.5..

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

Successfully merging a pull request may close this issue.

3 participants