mirror of https://github.com/sveltejs/svelte
fix: support contenteditable binding undefined fallback (#12210)
parent
41c8c745fa
commit
7c95c7b662
@ -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