(to: Element, from: Element | null)
| 19 | } |
| 20 | |
| 21 | export function dispatchVirtualFocus(to: Element, from: Element | null): void { |
| 22 | to.dispatchEvent(new FocusEvent('focus', {relatedTarget: from})); |
| 23 | to.dispatchEvent(new FocusEvent('focusin', {bubbles: true, relatedTarget: from})); |
| 24 | } |
| 25 | |
| 26 | export function getVirtuallyFocusedElement(document: Document): Element | null { |
| 27 | let activeElement = getActiveElement(document); |
no outgoing calls
no test coverage detected