MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / onWindowFocus

Function onWindowFocus

src/components/Tooltip/focus-open.ts:80–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80function onWindowFocus() {
81 // Element focus can land in the same turn as window focus, or just before it.
82 // Drop the record on the next turn so a later real Tab still opens.
83 scheduleClearRestoredFocus()
84}
85
86function detach() {
87 if (listening && typeof window !== 'undefined') {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected