(e: FocusEvent)
| 159 | }; |
| 160 | |
| 161 | let onFocusIn = (e: FocusEvent) => { |
| 162 | if (getEventTarget(e) === target || isRefocusing) { |
| 163 | e.stopImmediatePropagation(); |
| 164 | |
| 165 | if (!isRefocusing) { |
| 166 | isRefocusing = true; |
| 167 | focusWithoutScrolling(activeElement); |
| 168 | cleanup(); |
| 169 | } |
| 170 | } |
| 171 | }; |
| 172 | |
| 173 | window.addEventListener('blur', onBlur, true); |
| 174 | window.addEventListener('focusout', onFocusOut, true); |
nothing calls this directly
no test coverage detected