diff --git a/packages/carta-md/src/lib/internal/components/Input.svelte b/packages/carta-md/src/lib/internal/components/Input.svelte index e4f9bcb6..2a16e9a8 100644 --- a/packages/carta-md/src/lib/internal/components/Input.svelte +++ b/packages/carta-md/src/lib/internal/components/Input.svelte @@ -140,6 +140,8 @@ debouncedHighlight(value); highlightNestedLanguages(value); + + prevValue = value; }; $: if (BROWSER) onValueChange(value); @@ -195,7 +197,6 @@ bind:value bind:this={textarea} on:scroll={() => (textarea.scrollTop = 0)} - on:keydown={() => (prevValue = value)} >