(focusTarget: Element | null)
| 144 | // Focus is "moving to target" when it moves to the button or to a descendant of the button |
| 145 | // (e.g. SVG icon) |
| 146 | let isFocusMovingToTarget = (focusTarget: Element | null) => |
| 147 | focusTarget === target || (isNode(focusTarget) && nodeContains(target, focusTarget)); |
| 148 | // Blur/focusout events have their target as the element losing focus. Stop propagation when |
| 149 | // that is the previously focused element (activeElement) or a descendant (e.g. in shadow DOM). |
| 150 | let isBlurFromActiveElement = (eventTarget: Element | null) => |
no test coverage detected