You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Focused elements in the shadow DOM cannot be accessed by document.activeElement.
Just replace that code line in question with the following and everything will work again:
Describe the bug
When the tree component is used in shadow DOM then the keyboard navigation is not working.
To Reproduce
Please try to use the keyboard navigation in the tree element of this demo and you will see that it is broken:
https://jsbin.com/zewifakuke/2/edit?html,output
Source of this bug
The bug can be found here:
shoelace/src/components/tree/tree.ts
Line 231 in e42beab
Focused elements in the shadow DOM cannot be accessed by
document.activeElement
.Just replace that code line in question with the following and everything will work again:
[Edit] Something like this may also work, I guess:
The text was updated successfully, but these errors were encountered: