diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index 6a2e67d7..60d42bd0 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -205,7 +205,9 @@ $: menuId = `menu-${id}`; $: comboId = `combo-${id}`; $: highlightedId = items[highlightedIndex] ? items[highlightedIndex].id : 0; - $: filteredItems = items.filter((item) => shouldFilterItem(item, value)); + $: /** @type Array */ filteredItems = items.filter((item) => + shouldFilterItem(item, value) + );