Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/adobe/react-spectrum
/ addEvent
Function
addEvent
packages/react-aria/test/interactions/usePress.test.js:78–78 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
76
it(
'should fire press events based on pointer events with pointerType=mouse'
,
function
() {
77
let
events = [];
78
let
addEvent = e => events.push(e);
79
let
res = render(
80
<Example
81
onPressStart={addEvent}
Callers
1
usePress.test.js
File · 0.70
Calls
1
push
Method · 0.80
Tested by
no test coverage detected