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: Change focus lock library #764

Merged
merged 6 commits into from
Oct 14, 2019

Conversation

parostatkiem-zz
Copy link
Contributor

@parostatkiem-zz parostatkiem-zz commented Oct 8, 2019

Description

Change focus-trap-react library to react-focus-lock due to problems when it was used in Portal.
One test was changed because it was performed on the first rendered <div>. react-focus-lock renders 3 <div> elements (2 helpers and the main one) and the third one is the actual Modal.

It looks like people are having similar issues:
focus-trap/focus-trap-react#27

fixes #765

@netlify
Copy link

netlify bot commented Oct 8, 2019

Deploy preview for fundamental-react ready!

Built with commit 08aefa8

https://deploy-preview-764--fundamental-react.netlify.com

@parostatkiem-zz parostatkiem-zz changed the title Fix dropdowns in modal Change focus lock library Oct 8, 2019
@parostatkiem-zz parostatkiem-zz marked this pull request as ready for review October 9, 2019 08:42
@parostatkiem-zz parostatkiem-zz changed the title Change focus lock library fix: Change focus lock library Oct 9, 2019
@jbadan jbadan requested a review from a team October 9, 2019 15:48
Copy link
Contributor

@jbadan jbadan left a comment

Choose a reason for hiding this comment

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

🚢

@parostatkiem-zz
Copy link
Contributor Author

Thanks for the acceptation @jbadan!
Now, what about merging? Does any action need to be performed from my side to make it done?

@jbadan
Copy link
Contributor

jbadan commented Oct 11, 2019

@parostatkiem We will merge it, we were waiting to talk with the other fundamental-* libraries so that we stay as consistent as possible.

@jbadan jbadan merged commit 6108cd7 into SAP:master Oct 14, 2019
@parostatkiem-zz parostatkiem-zz deleted the fix-dropdowns-in-modal branch November 5, 2019 10:42
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.

Dropdown click doesn't work in Modal
2 participants