Skip to content
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

Input: When selecting a suggestion, changing the query and reselecting the same SuggestionItem the input gets cleared #6091

Closed
schempil opened this issue Nov 23, 2022 · 2 comments · Fixed by #6252
Assignees
Labels
bug This issue is a bug in the code Medium Prio TOPIC RL

Comments

@schempil
Copy link

Describe the bug
When using the Input component with suggestions based on the query in the input, I can select the suggestion, but after changing the query and selecting the same SuggestionItem the value in the input gets cleared.

Isolated Example
sandbox

To Reproduce
See description in sandbox.

Expected behavior
I expect to show the correct value all the time after a SuggestionItem has been selected.

UI5 Web Components for React Information
@ui5/webcomponents version: 1.9.1
@ui5/webcomponents-react version: 1.5.0
Operating System: macOs Ventura 13.0.1
Browser: Google Chrome Version 107.0.5304.110 (Official Build) (arm64)

@schempil schempil added the bug This issue is a bug in the code label Nov 23, 2022
@Lukas742
Copy link
Collaborator

Hi @schempil

Thanks for reporting and the detailed codeSandbox! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

Hi colleagues,

here you can find a codeSandbox with the same implementation, but using only plain ui5 web components.

@Lukas742 Lukas742 transferred this issue from SAP/ui5-webcomponents-react Nov 24, 2022
@niyap niyap self-assigned this Nov 24, 2022
@niyap niyap removed their assignment Dec 29, 2022
@kskondov
Copy link
Contributor

Hello @SAP/ui5-webcomponents-topic-rl the issue can be reproduced in the provided sandbox. Can you please take a look at why the value of the input gets cleared.

Best Regards,
Konstantin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code Medium Prio TOPIC RL
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

5 participants