Skip to content

Commit 00b3724

Browse files
fix(ui5-input): emit change when suggestion is clicked
1 parent a067601 commit 00b3724

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/main/src/Input.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,10 +1424,9 @@ class Input extends UI5Element implements SuggestionComponent, IFormInputElement
14241424
return;
14251425
}
14261426

1427-
const value = this.typedInValue || this.value;
14281427
const itemText = item.text || "";
14291428
const fireChange = keyboardUsed
1430-
? this.valueBeforeItemSelection !== itemText : value !== itemText;
1429+
? this.valueBeforeItemSelection !== itemText : this.previousValue !== itemText;
14311430

14321431
this.hasSuggestionItemSelected = true;
14331432
this.value = itemText;

0 commit comments

Comments
 (0)