mirror of https://github.com/sveltejs/svelte
fix: don't error on slot prop inside block inside other component (#15148)
`slot` is treated as a regular prop if it is not used directly inside another component, but we were running validations on such regular props that should only be run on real slots. Fixes #15125pull/15156/head
parent
b8607f8765
commit
83f00ebbd6
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: don't error on slot prop inside block inside other component
|
@ -1,2 +1,8 @@
|
||||
<Foo slot="foo">valid</Foo>
|
||||
<Foo slot={foo}>valid</Foo>
|
||||
<Foo>
|
||||
{#if true}
|
||||
<Foo slot="foo">valid</Foo>
|
||||
<Foo slot={foo}>valid</Foo>
|
||||
{/if}
|
||||
</Foo>
|
Loading…
Reference in new issue