Skip to content

Commit a0cf873

Browse files
committed
test(ui5-multi-combobox): stabilize test
1 parent cadbf16 commit a0cf873

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/main/src/MultiComboBox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,12 @@ class MultiComboBox extends UI5Element implements IFormInputElement {
14751475
innerInput.setSelectionRange(matchingItem.text!.length, matchingItem.text!.length);
14761476
this.open = false;
14771477
} else {
1478+
// If dropdown is open with a focused item, just close it instead of submitting
1479+
if (this.open && this._getList()._itemNavigation._currentIndex >= 0) {
1480+
this.open = false;
1481+
return;
1482+
}
1483+
14781484
if (this._lastValue !== this.value) {
14791485
this._inputChange();
14801486
}

0 commit comments

Comments
 (0)