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

Function handleShow

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

Source from the content-addressed store, hash-verified

48 let isFocused = useRef(false);
49
50 let handleShow = () => {
51 if (isHovered.current || isFocused.current) {
52 state.open(isFocused.current);
53 }
54 };
55
56 let handleHide = (immediate?: boolean) => {
57 if (!isHovered.current && !isFocused.current) {

Callers 2

onHoverStartFunction · 0.85
onFocusFunction · 0.85

Calls 1

openMethod · 0.65

Tested by

no test coverage detected