MCPcopy
hub / github.com/adobe/react-spectrum / handleHide

Function handleHide

packages/react-aria/src/tooltip/useTooltipTrigger.ts:56–60  ·  view source on GitHub ↗
(immediate?: boolean)

Source from the content-addressed store, hash-verified

54 };
55
56 let handleHide = (immediate?: boolean) => {
57 if (!isHovered.current && !isFocused.current) {
58 state.close(immediate);
59 }
60 };
61
62 useEffect(() => {
63 let onKeyDown = e => {

Callers 3

onHoverEndFunction · 0.85
onPressStartFunction · 0.85
onBlurFunction · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected