MCPcopy Index your code
hub / github.com/adobe/react-spectrum / onHoverEnd

Function onHoverEnd

packages/react-aria/src/tooltip/useTooltipTrigger.ts:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 };
96
97 let onHoverEnd = () => {
98 if (trigger === 'focus') {
99 return;
100 }
101 // no matter how the trigger is left, we should close the tooltip
102 isFocused.current = false;
103 isHovered.current = false;
104 handleHide();
105 };
106
107 let onPressStart = () => {
108 // if shouldCloseOnPress is false, we should not close the tooltip

Callers 1

triggerHoverEndFunction · 0.85

Calls 1

handleHideFunction · 0.85

Tested by

no test coverage detected