| 174 | }; |
| 175 | |
| 176 | let onFocusIn: EventListener = e => { |
| 177 | if (isFocusMovingToTarget(getEventTarget(e) as Element) || isRefocusing) { |
| 178 | e.stopImmediatePropagation(); |
| 179 | |
| 180 | if (!isRefocusing) { |
| 181 | isRefocusing = true; |
| 182 | focusWithoutScrolling(activeElement); |
| 183 | cleanup(); |
| 184 | } |
| 185 | } |
| 186 | }; |
| 187 | |
| 188 | root.addEventListener('blur', onBlur, true); |
| 189 | root.addEventListener('focusout', onFocusOut, true); |
nothing calls this directly
no test coverage detected