(from: Element, to: Element | null)
| 14 | } |
| 15 | |
| 16 | export function dispatchVirtualBlur(from: Element, to: Element | null): void { |
| 17 | from.dispatchEvent(new FocusEvent('blur', {relatedTarget: to})); |
| 18 | from.dispatchEvent(new FocusEvent('focusout', {bubbles: true, relatedTarget: to})); |
| 19 | } |
| 20 | |
| 21 | export function dispatchVirtualFocus(to: Element, from: Element | null): void { |
| 22 | to.dispatchEvent(new FocusEvent('focus', {relatedTarget: from})); |
no outgoing calls
no test coverage detected