mirror of https://github.com/sveltejs/svelte
fix: relax slot prop validation on components (#11923)
If a component is not inside a slot context, having a slot property is fine and doesn't have any restrictionspull/11928/head
parent
8c9d9a4a44
commit
380d4454a3
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: relax slot prop validation on components
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,2 @@
|
|||||||
|
<Foo slot="foo">valid</Foo>
|
||||||
|
<Foo slot={foo}>valid</Foo>
|
Loading…
Reference in new issue