Skip to content

[Input with SuggestionItem]: onChange not triggered when selecting item with full suggestion text #12179

@bomasap

Description

@bomasap

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

  1. Open the provided StackBlitz link.
  2. Open DevTools.
  3. Type "Icela" in the input.
  • Select "Iceland" from the suggestion popup.
  • Check DevTools: onChange event is logged to console.
  1. 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

Labels

Type

Projects

Status

🆕 New

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions