From 11c6ad385b82cea114df4e908e7914bbc4f26266 Mon Sep 17 00:00:00 2001 From: Wes McKinney Date: Thu, 3 Sep 2026 22:05:36 -0500 Subject: [PATCH] fix: type bindable input handles correctly --- src/lib/components/SearchInput.svelte | 2 +- src/lib/components/TextInput.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }