Skip to content

fix(modal, popover): Stop preventing focus on elements outside of the component. #6753

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

Closed
wants to merge 2 commits into from

Conversation

driskull
Copy link
Member

@driskull driskull commented Apr 7, 2023

Related Issue: #6581

Summary

@jcfranco this needs to be tested but I think it might fix the issue with clicks not being allowed in some instances.

I think what the doc is saying is that we should set the document property to our host element. However, the typings won't allow for that. I opened up an issue with focus-trap for clarity.

focus-trap/focus-trap#939

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Apr 7, 2023
@jcfranco
Copy link
Member

this needs to be tested but I think it might fix the issue with clicks not being allowed in some instances.

👍 on testing. I think I tried this for #6281, but maybe additional configuration options used interfered with the desired behavior.

@driskull
Copy link
Member Author

I tested with the codepen from #6581 and this does fix that instance.

@driskull driskull closed this Apr 11, 2023
@driskull driskull deleted the dris0000/focus-trap-component-fix branch April 11, 2023 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants