mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
fix(Dropdown): update selectedId when selectedIndex changes.
This commit is contained in:
parent
93f14c92e4
commit
a4f2a1b389
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@
|
|||
}
|
||||
$: inline = type === "inline";
|
||||
$: selectedItem = items[selectedIndex];
|
||||
$: selectedId = items[selectedIndex] ? items[selectedIndex].id : undefined;
|
||||
$: if (!open) {
|
||||
highlightedIndex = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue