MCPcopy Create free account
hub / github.com/Effect-TS/effect / returnTo

Function returnTo

packages/effect/src/ui/kit/Menu.ts:1578–1578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1576
1577 let before: HTMLElement | null = null
1578 const returnTo = () => current.context ? before : trigger()
1579 const siblingOpened = (own: HTMLElement | null) => {
1580 const bar = own === null ? null : menubarOf(own)
1581 return bar !== null &&

Callers 2

closingFunction · 0.85
onKeyDownFunction · 0.85

Calls 1

triggerFunction · 0.70

Tested by

no test coverage detected