diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index be693f34..ae0967f8 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -3,6 +3,7 @@ * @typedef {any} ComboBoxItemId * @typedef {{ id: ComboBoxItemId; text: string; }} ComboBoxItem * @event {{ selectedId: ComboBoxItemId; selectedItem: ComboBoxItem }} select + * @slot {{ item: ComboBoxItem; index: number }} */ /** @@ -363,7 +364,9 @@ highlightedIndex = i; }}" > - {itemToString(item)} + + {itemToString(item)} + {#if selectedItem && selectedItem.id === item.id} {/if}