MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onHide

Function onHide

packages/react-aria/src/overlays/useOverlay.ts:94–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 // Only hide the overlay when it is the topmost visible overlay in the stack
94 let onHide = () => {
95 if (visibleOverlays[visibleOverlays.length - 1] === ref && onClose) {
96 onClose();
97 }
98 };
99
100 let onInteractOutsideStart = (e: PointerEvent) => {
101 const topMostOverlay = visibleOverlays[visibleOverlays.length - 1];

Callers 2

onInteractOutsideFunction · 0.85
useOverlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected