mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
* fix(combo-box): fix reactivity regression #768 Fixes #768 * fix(combo-box): if selectedItem is not defined, default selectedIndex to 0 * fix(combo-box): do not reset selectedIndex to 0, fallback to empty string * fix(combo-box): reset selectedIndex
This commit is contained in:
parent
59dce3ce65
commit
d24c60856f
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@
|
|||
: undefined;
|
||||
$: filteredItems = items.filter((item) => shouldFilterItem(item, value));
|
||||
$: selectedItem = items[selectedIndex];
|
||||
$: inputValue = selectedItem ? selectedItem.text : "";
|
||||
$: value = inputValue;
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue