MCPcopy Index your code
hub / github.com/react/react / virtualclick

Function virtualclick

packages/dom-event-testing-library/domEvents.js:274–290  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

272}
273
274export function virtualclick(payload) {
275 return createMouseEvent('click', {
276 button: 0,
277 ...payload,
278 buttons: 0,
279 detail: 0,
280 height: 1,
281 pageX: 0,
282 pageY: 0,
283 pressure: 0,
284 screenX: 0,
285 screenY: 0,
286 width: 1,
287 x: 0,
288 y: 0,
289 });
290}
291
292/**
293 * Key events

Callers

nothing calls this directly

Calls 1

createMouseEventFunction · 0.85

Tested by

no test coverage detected