diff --git a/front/src/lib/components/forms/fields/select-field.svelte b/front/src/lib/components/forms/fields/select-field.svelte index 731434dfb..754d9970a 100644 --- a/front/src/lib/components/forms/fields/select-field.svelte +++ b/front/src/lib/components/forms/fields/select-field.svelte @@ -18,6 +18,9 @@ // Spécifique du select export let choices: Choice[]; + export let searchFunction: + | ((searchText: string) => Promise) + | undefined = undefined; export let sort = false; export let onChange = undefined; export let placeholderMulti = "Choisir"; @@ -47,6 +50,7 @@ {id} {choices} {sort} + {searchFunction} bind:value on:blur={onBlur} {onChange} diff --git a/front/src/lib/components/inputs/select/select.svelte b/front/src/lib/components/inputs/select/select.svelte index f585225a1..bd2f1e081 100644 --- a/front/src/lib/components/inputs/select/select.svelte +++ b/front/src/lib/components/inputs/select/select.svelte @@ -1,9 +1,10 @@