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

Function mousedown

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

Source from the content-addressed store, hash-verified

377 */
378
379export function mousedown(payload) {
380 // The value of 'button' and 'buttons' for 'mousedown' must not be none.
381 const button =
382 payload == null || payload.button === buttonType.none
383 ? buttonType.primary
384 : payload.button;
385 const buttons =
386 payload == null || payload.buttons === buttonsType.none
387 ? buttonsType.primary
388 : payload.buttons;
389 return createMouseEvent('mousedown', {
390 ...payload,
391 button,
392 buttons,
393 });
394}
395
396export function mouseenter(payload) {
397 return createMouseEvent('mouseenter', payload);

Callers

nothing calls this directly

Calls 1

createMouseEventFunction · 0.85

Tested by

no test coverage detected