-
Notifications
You must be signed in to change notification settings - Fork 280
Description
Describe the bug
When using Input with SuggestionItem, there is an inconsistency in the onChange event behavior:
-
If the input contains a partial suggestion text (e.g., typing "Icela") and then selecting the suggestion "Iceland" from the popup, the onChange event is triggered.
-
If the input already contains the full suggestion text (e.g., typing "Iceland") and then selecting the same suggestion "Iceland" from the popup, the onChange event is not triggered.
This creates inconsistent behavior and makes it hard to detect selection in cases where the user confirms a full match by clicking the suggestion.
Isolated Example
https://stackblitz.com/edit/github-xmbrazp3-rnjz24n1?file=src%2FApp.tsx
Reproduction steps
- Open the provided StackBlitz link.
- Open DevTools.
- Type "Icela" in the input.
- Select "Iceland" from the suggestion popup.
- Check DevTools: onChange event is logged to console.
- Type "Iceland" in the input.
- Select "Iceland" from the suggestion popup.
- Check DevTools: onChange event is not logged.
Expected Behaviour
The onChange event should be triggered consistently, even when the full suggestion text is already present in the input.
Screenshots or Videos
No response
UI5 Web Components for React Version
2.13.1
UI5 Web Components Version
2.13.1
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
- I’m not disclosing any internal or sensitive information.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status