-
Notifications
You must be signed in to change notification settings - Fork 17
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
Error when focus to element inside shadow DOM #11
Comments
Not sure what is the real issue and how to reproduce it. |
here is the reproduce https://codesandbox.io/s/dawn-glitter-n5of7?fontsize=14 |
When going up and checking all parents one should check for the ShadowRoot
Related - https://github.com/chartjs/Chart.js/pull/5585/files |
I'm dealing with this issue as well, though I'm pretty sure I'm not using the shadow DOM in my application. I'm getting these errors on the document nodes. I noticed that the conditional So when the Maybe a The thing that's so strange about this is that it was working before here: https://primer.style/components/docs/Dialog, in that environment the only usage of Once we added Could this have anything to do with competing focus-lock instances? |
The problem is with two different documents, and that’s something focus-lock has no powers upon. |
I'm getting the same issue when using |
Updates has been published to all packages. Not sure if does it solve ShadowDOM issue, but |
That was fast! Appreciate the fix, iframe detection works :) |
The error is here:
reference: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host
will take a look to create MR later. Help is welcome :D 💃
The text was updated successfully, but these errors were encountered: