Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ onFocus
Function
onFocus
packages/react-aria/src/spinbutton/useSpinButton.ts:133–135 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
131
132
let
isFocused = useRef(false);
133
let
onFocus = () => {
134
isFocused.current = true;
135
};
136
137
let
onBlur = () => {
138
isFocused.current = false;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected