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

Function onHoverEnd

packages/react-aria/src/tooltip/usePreviewTrigger.ts:134–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 };
133
134 let onHoverEnd = () => {
135 // Before the preview opens, cancel a pending warmup if the pointer leaves the trigger. Once
136 // open, the safe-area polygon (useSafeArea) governs closing as the pointer moves to the popover.
137 if (!state.isOpen) {
138 pointerInSafeArea.current = false;
139 state.close();
140 }
141 };
142
143 let onTriggerFocus = e => {
144 if (ignoreFocus.current) {

Callers 1

triggerHoverEndFunction · 0.50

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected