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

Function onFocus

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

Source from the content-addressed store, hash-verified

116 };
117
118 let onFocus = () => {
119 let isVisible = isFocusVisible();
120 if (isVisible) {
121 isFocused.current = true;
122 handleShow();
123 }
124 };
125
126 let onBlur = () => {
127 isFocused.current = false;

Callers

nothing calls this directly

Calls 2

isFocusVisibleFunction · 0.90
handleShowFunction · 0.85

Tested by

no test coverage detected