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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user