Skip to content

Commit

Permalink
Fix autofocus in dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Oct 24, 2024
1 parent d9e76ce commit b37324e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/lib/forms/UserTypeahead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
export let label: string;
export let error: string | string[] | undefined = undefined;
export let id: string = randomFormId();
export let autofocus = false;
export let autofocus: true | undefined = undefined;
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
export let value: string;
export let debounceMs = 200;
Expand Down Expand Up @@ -57,6 +57,7 @@
bind:value {id}
type="text"
autocomplete="off"
{autofocus}
keydownHandler={() => {$selectedUser = null}}
/>
<div class="overlay-content">
Expand Down

0 comments on commit b37324e

Please sign in to comment.