feat(frontend): add autofocus prop to PersonTypeahead forwarded to text input

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-18 13:53:10 +02:00
parent 57ed9379a2
commit 255eeb660b

View File

@@ -15,6 +15,7 @@ interface Props {
placeholder?: string;
compact?: boolean;
large?: boolean;
autofocus?: boolean;
restrictToCorrespondentsOf?: string;
onchange?: (value: string) => void;
onfocused?: () => void;
@@ -29,6 +30,7 @@ let {
placeholder,
compact = false,
large = false,
autofocus = false,
restrictToCorrespondentsOf,
onchange,
onfocused
@@ -121,6 +123,7 @@ function selectPerson(person: Person) {
type="text"
id="{name}-search"
autocomplete="off"
autofocus={autofocus}
bind:value={searchTerm}
oninput={handleInput}
onfocus={handleFocus}