diff --git a/packages/autocomplete-js/src/autocomplete.ts b/packages/autocomplete-js/src/autocomplete.ts index 354b71774..51dacf23a 100644 --- a/packages/autocomplete-js/src/autocomplete.ts +++ b/packages/autocomplete-js/src/autocomplete.ts @@ -50,7 +50,11 @@ type GetSources = ( export interface AutocompleteOptions extends PublicAutocompleteCoreOptions { container: string | HTMLElement; - render(params: { root: HTMLElement; sections: HTMLElement[] }): void; + render(params: { + root: HTMLElement; + sections: HTMLElement[]; + state: AutocompleteState; + }): void; getSources: GetSources; } @@ -189,7 +193,7 @@ export function autocomplete({ return section; }); - renderDropdown({ root: dropdown, sections }); + renderDropdown({ root: dropdown, sections, state }); } form.appendChild(label);