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