handle value missing
This commit is contained in:
parent
32e115b818
commit
b948b2cf41
|
@ -30,6 +30,9 @@ const ext = {
|
|||
?.value;
|
||||
|
||||
let selectedIndex = clickedComboValue ? values.findIndex(v => v === clickedComboValue) : 0;
|
||||
if (selectedIndex < 0) {
|
||||
selectedIndex = 0;
|
||||
}
|
||||
let selectedItem = displayedItems[selectedIndex];
|
||||
updateSelected();
|
||||
|
||||
|
|
Loading…
Reference in New Issue