diff --git a/src/lib/components/SearchInput.svelte b/src/lib/components/SearchInput.svelte index 539cca2..1387853 100644 --- a/src/lib/components/SearchInput.svelte +++ b/src/lib/components/SearchInput.svelte @@ -36,7 +36,7 @@ clearLabel?: string; /** The underlying input element (bindable) — e.g. for app shortcut * handlers that focus the search field. */ - inputEl?: HTMLInputElement; + inputEl?: HTMLInputElement | undefined; class?: string; } diff --git a/src/lib/components/TextInput.svelte b/src/lib/components/TextInput.svelte index 3cb9336..d18d17b 100644 --- a/src/lib/components/TextInput.svelte +++ b/src/lib/components/TextInput.svelte @@ -46,7 +46,7 @@ /** Trailing adornment inside the border (icon, clear button, kbd). */ suffix?: Snippet; /** The underlying input element (bindable) — for focus management. */ - inputEl?: HTMLInputElement; + inputEl?: HTMLInputElement | undefined; class?: string; }