Skip to content

Commit 3b24649

Browse files
committed
fix(ui5-combo-box): use value when first selecting an item with value
1 parent cbcd4cf commit 3b24649

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/main/src/ComboBox.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,9 +1373,9 @@ class ComboBox extends UI5Element implements IFormInputElement {
13731373
}
13741374

13751375
this.value = this._selectedItemText;
1376-
// On first item select the _useSelectedValue is still false.
1377-
// In case the item has a value property, we set the _useSelectedValue to true to start working with the value instead with the text
1378-
if (!this._useSelectedValue && item.value != undefined) {
1376+
// On first item select the _useSelectedValue is still false.
1377+
// In case the item has a value property, we set the _useSelectedValue to true to start working with the value instead with the text.
1378+
if (!this._useSelectedValue && item.value !== undefined) {
13791379
this._useSelectedValue = true;
13801380
}
13811381

0 commit comments

Comments
 (0)