Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ focus
Function
focus
packages/@adobe/react-spectrum/src/utils/useDOMRef.ts:39–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
return
{
38
...createDOMRef(domRef),
39
focus() {
40
if
(focusableRef.current) {
41
focusableRef.current.focus();
42
}
43
}
44
};
45
}
46
Callers
nothing calls this directly
Calls
1
focus
Method · 0.80
Tested by
no test coverage detected