mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
fix(combo-box): update input text if item is selected
This commit is contained in:
parent
529b5bd71e
commit
89786a76b4
1 changed files with 6 additions and 0 deletions
|
@ -235,6 +235,12 @@
|
|||
inputValue = filteredItems[selectedIndex].text;
|
||||
}
|
||||
}
|
||||
|
||||
if (highlightedIndex < 0 && selectedIndex > -1) {
|
||||
if (filteredItems[selectedIndex]) {
|
||||
inputValue = filteredItems[selectedIndex].text;
|
||||
}
|
||||
}
|
||||
} else if (key === 'Tab') {
|
||||
open = false;
|
||||
} else if (key === 'ArrowDown') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue