Open spmonahan opened 8 months ago
When the active element for a document is inside a shadow root document.activeElement points to the host element rather than the actually focused element. To access the actually focused element the ShadowRoot.activeElement must be inspected.
document.activeElement
ShadowRoot.activeElement
Example of the issue
When the active element for a document is inside a shadow root
document.activeElement
points to the host element rather than the actually focused element. To access the actually focused element theShadowRoot.activeElement
must be inspected.Example of the issue