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

fix(ui5-select): fix popover opening #2687

Merged
merged 2 commits into from
Jan 15, 2021
Merged

fix(ui5-select): fix popover opening #2687

merged 2 commits into from
Jan 15, 2021

Conversation

nnaydenow
Copy link
Contributor

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

@@ -456,6 +456,15 @@ class Select extends UI5Element {
this._toggleRespPopover();
}

_onclick(event) {
this.getFocusDomRef().focus();
Copy link
Member

@ilhan007 ilhan007 Jan 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is getFocusDomRef() in UI5Element.js line 687, you can just set data-sap-focus-ref attr to the "{id}-label" and the UI5Element#getFocusDomRef will return it.

@nnaydenow nnaydenow requested a review from ilhan007 January 15, 2021 11:45
@nnaydenow nnaydenow merged commit 53418fb into SAP:master Jan 15, 2021
@nnaydenow nnaydenow deleted the select-popover branch January 15, 2021 14:11
NHristov-sap pushed a commit to NHristov-sap/ui5-webcomponents that referenced this pull request 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui5-select does not close on click when there is value state
2 participants