[Dialog] Focus trap does not work properly when <sl-dialog>
is in a shadow root
#709
Labels
bug
Things that aren't working right in the library.
Describe the bug
Rendering and opening an
<sl-dialog>
inside of a shadow root does not seem to play nice with the focus trap. I can tab out of the dialog into elements underneath it.The scroll-lock also does not seem to work nicely when inside a shadow root (I can still scroll the content underneath)t. But this is inconsistent and I did not manage to reproduce it in a simple example. Mentioning it here just in case it's something similar to the focus trap. But might as well be something in my project.
To Reproduce
Steps to reproduce the behavior:
Demo
Reproduction on CodeSandbox
Browser / OS
The text was updated successfully, but these errors were encountered: