mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(combo-box): if selectedItem is not defined, default selectedIndex to 0
This commit is contained in:
parent
85bf38a303
commit
5d900dfd91
1 changed files with 1 additions and 2 deletions
|
@ -131,8 +131,7 @@
|
|||
highlightedIndex = -1;
|
||||
|
||||
if (!selectedItem) {
|
||||
selectedId = undefined;
|
||||
selectedIndex = -1;
|
||||
selectedIndex = 0;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue