Skip to content

Commit

Permalink
add bind:inputEl to textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jan 13, 2025
1 parent 255f4f5 commit dd096ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/svelte-ux/src/lib/components/TextField.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
? (node) => [autoFocus(node, typeof autofocus === 'object' ? autofocus : undefined)]
: undefined;
export let operators: { label: string; value: string }[] | undefined = undefined;
export let inputEl: HTMLInputElement | null = null;
export let inputEl: HTMLInputElement | HTMLTextAreaElement | null = null;
export let debounceChange: boolean | number = false;
export let classes: {
root?: string;
Expand Down Expand Up @@ -327,6 +327,7 @@
{disabled}
value={inputValue}
{autocapitalize}
bind:inputEl
on:input={handleInput}
on:focus
on:blur
Expand Down

0 comments on commit dd096ad

Please sign in to comment.