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