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

Function onPressStart

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

Source from the content-addressed store, hash-verified

105 };
106
107 let onPressStart = () => {
108 // if shouldCloseOnPress is false, we should not close the tooltip
109 if (!shouldCloseOnPress) {
110 return;
111 }
112 // no matter how the trigger is pressed, we should close the tooltip
113 isFocused.current = false;
114 isHovered.current = false;
115 handleHide(true);
116 };
117
118 let onFocus = () => {
119 let isVisible = isFocusVisible();

Callers

nothing calls this directly

Calls 1

handleHideFunction · 0.85

Tested by

no test coverage detected