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
The focused element should register the keyboard events
Actual behavior
The element does not register the keyboard events
User-event version
^14.4.3
Environment
Testing Library framework: @testing-library/dom@9.3.1
JS framework: lit@2.7.5
Test environment: jest@29.5.0
DOM implementation: jsdom@20.0.3
Additional context
I identified that the issue is that when getActiveElement gets an element with shadowDom, it gets the active element of the shadowDom. But, the element with shadow dom could be the active one, even if no shadow children are active (tabindex). Then it returns null, instead of returning the element.