Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ addEvent
Function
addEvent
packages/react-aria/test/interactions/useFocus.test.js:31–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
it(
'handles focus events on the immediate target'
,
function
() {
30
let
events = [];
31
let
addEvent = e => events.push({
type
: e.
type
, target: e.target});
32
let
tree = render(
33
<Example
34
onFocus={addEvent}
Callers
nothing calls this directly
Calls
1
push
Method · 0.80
Tested by
no test coverage detected