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-popup): prevent focus on elements below block layer #2800

Merged
merged 4 commits into from
Feb 11, 2021
Merged

fix(ui5-popup): prevent focus on elements below block layer #2800

merged 4 commits into from
Feb 11, 2021

Conversation

dimovpetar
Copy link
Contributor

@dimovpetar dimovpetar commented Feb 9, 2021

Problem:
The body element receives focus when an element inside the popup, which can't get focus (div, span) is clicked.
Then any element below the block layer can be focused.

Solution:
Don't let the focus leave the popup.

Fixes: #2626

Thank you for your contribution! 👏

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

Problem:
When element inside the popup, which can't get focus is clicked, the focus goes on the body element.
Then any element below the block layer can be focused.

Solution:
Don't let the focus leave the popup.

Fixes: #2626
@dimovpetar dimovpetar requested a review from a team February 9, 2021 11:51
georgimkv
georgimkv previously approved these changes Feb 9, 2021
@ilhan007
Copy link
Member

ilhan007 commented Feb 9, 2021

you have to resolve the merge conflicts

ilhan007
ilhan007 previously approved these changes Feb 9, 2021
@dimovpetar dimovpetar dismissed stale reviews from ilhan007 and georgimkv via dde1319 February 9, 2021 13:50
@dimovpetar
Copy link
Contributor Author

you have to resolve the merge conflicts

Done

georgimkv
georgimkv previously approved these changes Feb 9, 2021
@ilhan007 ilhan007 merged commit f2f3889 into SAP:master Feb 11, 2021
@dimovpetar dimovpetar deleted the fix_popup_background_elements_focus branch February 11, 2021 13:13
ilhan007 pushed a commit that referenced this pull request Mar 1, 2021
Problem: When element inside the popup, which can't get focus is clicked, the focus goes on the body element.
Then any element below the block layer can be focused.
Solution: Don't let the focus leave the popup.

Fixes: #2626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants