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

ui5-select does not close on click when there is value state #2682

Closed
vladitasev opened this issue Jan 14, 2021 · 0 comments · Fixed by #2687
Closed

ui5-select does not close on click when there is value state #2682

vladitasev opened this issue Jan 14, 2021 · 0 comments · Fixed by #2687
Assignees
Labels
bug This issue is a bug in the code Medium Prio TOPIC P

Comments

@vladitasev
Copy link
Contributor

vladitasev commented Jan 14, 2021

On master:
Try the following:

<ui5-select value-state="Information">
	<ui5-option icon="accept">Cozy</ui5-option>
	<ui5-option icon="accept" selected>Compact</ui5-option>
	<ui5-option icon="accept">Condensed</ui5-option>
</ui5-select>

Click on any item that is not selected. The select will close and open again very fast (looks like it never closes). Clicking on the already selected option is fine.

Now delete the value-state attribute - no matter on which item you click, it works well (select closes on click).

@vladitasev vladitasev changed the title ui5-select does not close on click when there is value state ui5-select does not close on click when there is value state Jan 14, 2021
@nnaydenow nnaydenow self-assigned this Jan 14, 2021
@nnaydenow nnaydenow added bug This issue is a bug in the code Medium Prio labels Jan 14, 2021
@nnaydenow nnaydenow added TOPIC P and removed TOPIC B labels Jan 14, 2021
nnaydenow added a commit that referenced this issue Jan 15, 2021
When the accessibility refactoring of was done the focus reference was changed. The click event should focus the correct element so the internal rules which controls the visibility of value state could pass.

Fixes: #2682
NHristov-sap pushed a commit to NHristov-sap/ui5-webcomponents that referenced this issue Feb 9, 2021
When the accessibility refactoring of was done the focus reference was changed. The click event should focus the correct element so the internal rules which controls the visibility of value state could pass.

Fixes: SAP#2682
@petyabegovska petyabegovska moved this to Completed in Maintenance - Topic P Jun 21, 2024
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 P
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

3 participants