mirror of https://github.com/sveltejs/svelte
parent
d3111db1ef
commit
b0154111fd
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: support contenteditable binding undefined fallback
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
let {children} = $props()
|
||||
let innerText = $state()
|
||||
$inspect(innerText);
|
||||
</script>
|
||||
|
||||
<div contenteditable="true" bind:innerHTML={innerText}>
|
||||
{@render children()}
|
||||
</div>
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<div contenteditable="true">Test</div>`
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Test from './Test.svelte'
|
||||
</script>
|
||||
|
||||
<Test>
|
||||
Test
|
||||
</Test>
|
Loading…
Reference in new issue