mirror of https://github.com/sveltejs/svelte
parent
ce047651e5
commit
99a3cc93b6
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: allow child element with slot attribute within svelte:element
|
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
html: `
|
||||
<dynamic-element>
|
||||
<header slot='header'>header header header</header>
|
||||
</dynamic-element>
|
||||
`
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export let tagName = 'dynamic-element'
|
||||
</script>
|
||||
|
||||
<svelte:element this={tagName}>
|
||||
<header slot='header'>header header header</header>
|
||||
</svelte:element>
|
Loading…
Reference in new issue