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