MCPcopy Create free account
hub / github.com/anomalyco/opencode / drop

Function drop

packages/ui/src/components/tooltip.tsx:61–66  ·  view source on GitHub ↗
(expand = state.expand)

Source from the content-addressed store, hash-verified

59 }
60
61 const drop = (expand = state.expand) => {
62 if (expand) return
63 if (ref?.matches(":hover")) return
64 if (inside()) return
65 setState("block", false)
66 }
67
68 const sync = () => {
69 const expand = !!ref?.querySelector('[aria-expanded="true"], [data-expanded]')

Callers 3

syncFunction · 0.70
leaveFunction · 0.70
TooltipFunction · 0.70

Calls 2

setStateFunction · 0.85
insideFunction · 0.70

Tested by

no test coverage detected