MCPcopy Index your code
hub / github.com/adobe/react-spectrum / onClick

Function onClick

packages/react-aria/src/dnd/useDrag.ts:402–409  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

400 }
401 },
402 onClick(e) {
403 // Handle NVDA/JAWS in browse mode, and touch screen readers. In this case, no keyboard events are fired.
404 if (isVirtualClick(e.nativeEvent) || modalityOnPointerDown.current === 'virtual') {
405 e.preventDefault();
406 e.stopPropagation();
407 startDragging(getEventTarget(e));
408 }
409 }
410 };
411 }
412

Callers 1

TransitionButtonFunction · 0.50

Calls 3

isVirtualClickFunction · 0.90
getEventTargetFunction · 0.90
startDraggingFunction · 0.70

Tested by 1

TransitionButtonFunction · 0.40