diff --git a/packages/bbui/src/Form/Core/TextArea.svelte b/packages/bbui/src/Form/Core/TextArea.svelte index da69d4db21..3903c37b28 100644 --- a/packages/bbui/src/Form/Core/TextArea.svelte +++ b/packages/bbui/src/Form/Core/TextArea.svelte @@ -7,8 +7,13 @@ export let disabled = false export let error = null export let id = null + export const getCaretPosition = () => ({ + start: textarea.selectionStart, + end: textarea.selectionEnd, + }) let focus = false + let textarea const dispatch = createEventDispatcher() const onChange = event => { dispatch("change", event.target.value) @@ -30,6 +35,7 @@ {/if}