-
Notifications
You must be signed in to change notification settings - Fork 273
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] Change event is not fired as documented on ui5-combobox #5432
Comments
Hi @SAP/ui5-webcomponents-topic-rl @nikolay-kolarov any workaround available while we tackle the issue would be appreciated. |
Hi @SAP/ui5-webcomponents-topic-rl, Issue is reproducible and you can reproduce it as author describes it. It is reproducible only if the input's text match whole item text. Regards, |
Hi @ixiler , You'd need to use the Cheers |
Hi @d3xter666, For what version of the web components is that true? I tried to modify the sandbox with the proposed event and it does not work as expected - the bug is still reproducible. Can you provide a working example? Also is that a general rule that all documented events are expected to have Cheers |
the Other than that, the original event name as documented should be used and should have the same behaviour as the prefixed one. @d3xter666 please double check if this is the intended behaviour of the event. |
Thanks! Would recheck it |
* chore: release v1.4.0 * chore: translation delivery (#5278) * chore: release v1.5.0 * chore: update css-vars-usage * fix(ui5-combobox): correctly fire change event on item press (#5447) Fixes #5432 * chore: release v1.6.0 * chore: update yarn lock * chore: release v1.7.0 * chore: update playground * fix(ui5-tabcontainer): fixed error when no tabs (#5793) * fix(ui5-tabcontainer): fixed error when no tabs * chore: release v1.7.1 * chore: release v1.8.0 Co-authored-by: SAP LX Lab Service Account <tmsatsls+github.com_service-tip-git@sap.com> Co-authored-by: Yavor Ivanov <d3xter666@users.noreply.github.com> Co-authored-by: TeodorTaushanov <teodor.taushanov@sap.com>
Bug Description
All the descriptions bellow are about ui5-combobox component
The change event doesn't fire when the value in the input matches a ui5-cb-item text attribute exactly. In such case the event is not fired when the ui5-cb-item is clicked, when the Enter button is pressed and when the input is focused out.
Expected Behavior
The change event to fire as per the documentation description "Fired when the input operation has finished by pressing Enter, focusout or an item is selected.".
A temporary workaround would be appreciated as well, since using selection-change events fires before the user interaction is finished (pressing enter, clicking on a ui5-cb-item or focusing out). The Enter press and focus out already have workarounds on our end, but couldn't catch the ui5-cb-item event.
Steps to Reproduce
Isolated Example
The sandbox provided is a simple one: There is a single combobox with 3 items and a span above it that is changed by the events fired by the change event. Also the subscription to the change event logs the received value to the console.
sandbox
Context
Log Output / Stack Trace / Screenshots
Priority
The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:
Note: The priority might be re-evaluated by the issue processor.
Stakeholder Info (if applicable)
The text was updated successfully, but these errors were encountered: