-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui5-combobox, Angular 18]: selection-change event is not fired when the matched text as available option is written in the input and clicked on the dropdown #10239
Comments
Hello @TsvetomirGT, It would be especially helpful if you could share a code snippet or a live example that demonstrates the problem. This will help us better understand the issue and offer an appropriate solution. I attempted to reproduce the problem locally with regular version of WebComponents, but was unable to reproduce the issue. Could you maybe provide an isolated example? You can use https://stackblitz.com/ Best regards, |
Hello @s-todorova , Ive created a stackblitz example: Here In the following example you can see the combobox component. Ive added a console log to the (selection-change) event. Also there is a noTypeahead property set to true.
There are other variations of the issue, for example if you type "Bulgaria " (with space after it), then delete the space and the dropdown will list again "Bulgaria". When you click it, again the event is not firing anything. Hope this description is helpful. Best regards, |
Thank you for providing a sample. Hello @SAP/ui5-webcomponents-topic-rl , Best regards, |
…matches item Fixes #10239 When combobox is in noTypeahead mode, if the user writes a text that matches exactly a list item, selection-change event was not fired if the user selects the item by clicking on it. Now the selection0change event fires when item text is exactly typed and immediately selected from the items list.
Bug Description
In an Angular 18 application using SAP UI5's ComboBox component, a bug occurs when the user types text into the input field that matches one of the options in the dropdown and then selects that option by clicking on it. The issue is that the selection-change event is not triggered as expected.
Affected Component
ui5-combobox
Expected Behaviour
When the user clicks on the matching option in the dropdown, the selection-change event should fire, regardless of whether the text was pre-typed in the input field.
Isolated Example
No response
Steps to Reproduce
...
(Optional steps)
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.3.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: