Skip to content

Commit

Permalink
fix(#131): wrong history for speculative updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BearToCode committed Nov 6, 2024
1 parent aa6bc28 commit 4e920ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/carta-md/src/lib/internal/components/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
debouncedHighlight(value);
highlightNestedLanguages(value);
prevValue = value;
};
$: if (BROWSER) onValueChange(value);
Expand Down Expand Up @@ -195,7 +197,6 @@
bind:value
bind:this={textarea}
on:scroll={() => (textarea.scrollTop = 0)}
on:keydown={() => (prevValue = value)}
></textarea>
</div>

Expand Down

0 comments on commit 4e920ef

Please sign in to comment.