mirror of https://github.com/sveltejs/svelte
fix: ensure snippets after empty text correctly hydrate (#13870)
parent
b5750ac667
commit
42ccdc1023
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ensure snippets after empty text correctly hydrate
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let {prop = '', children} = $props()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>{prop}{@render children()}</div>
|
@ -0,0 +1,8 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
compileOptions: {
|
||||||
|
dev: true // Render in dev mode to check that the validation error is not thrown
|
||||||
|
},
|
||||||
|
html: `<div>123</div`
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
import Child from './Child.svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Child>123</Child>
|
Loading…
Reference in new issue