Skip to content

Commit a10acc8

Browse files
authored
fix(ui5-combobox): fix behaviour when enter is clicked
1 parent 53418fb commit a10acc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/ComboBox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ class ComboBox extends UI5Element {
654654
this._tempValue = current;
655655
}
656656

657-
if (matchingItems.length && (selectionValue !== this._tempValue)) {
657+
if (matchingItems.length && (selectionValue !== this._tempValue && this.value !== this._tempValue)) {
658658
setTimeout(() => {
659659
this.inner.setSelectionRange(selectionValue.length, this._tempValue.length);
660660
}, 0);

0 commit comments

Comments
 (0)