mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46: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;
|
highlightedIndex = -1;
|
||||||
|
|
||||||
if (!selectedItem) {
|
if (!selectedItem) {
|
||||||
selectedId = undefined;
|
selectedIndex = 0;
|
||||||
selectedIndex = -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue