We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a38546d commit bff2530Copy full SHA for bff2530
.changeset/tame-jokes-brake.md
@@ -0,0 +1,6 @@
1
+---
2
+"@skeletonlabs/skeleton-svelte": patch
3
4
+
5
+bugfix: Fix Combobox collection not updating on input
6
packages/skeleton-svelte/src/components/Combobox/Combobox.svelte
@@ -48,7 +48,7 @@
48
let options = $state.raw(data);
49
const collection = $derived(
50
combobox.collection({
51
- items: data,
+ items: options,
52
// Map data structure
53
itemToValue: (item) => item.value,
54
itemToString: (item) => item.label
@@ -66,7 +66,6 @@
66
},
67
onInputValueChange(event) {
68
const filtered = data.filter((item) => item.label.toLowerCase().includes(event.inputValue.toLowerCase()));
69
- collection.setItems(filtered);
70
options = filtered;
71
zagProps.onInputValueChange?.(event);
72
}
0 commit comments