MCPcopy
hub / github.com/Shopify/draggable / dragDrop

Function dragDrop

test/helpers/sensor.ts:79–84  ·  view source on GitHub ↗
(element: HTMLElement, options = {})

Source from the content-addressed store, hash-verified

77}
78
79export function dragDrop(element: HTMLElement, options = {}) {
80 return triggerEvent(element, 'drop', {
81 dataTransfer: getDataTransferStub(),
82 ...options,
83 });
84}
85
86export function dragStop(element: HTMLElement, options = {}) {
87 return triggerEvent(element, 'dragend', {

Callers 1

dragFunction · 0.90

Calls 2

triggerEventFunction · 0.90
getDataTransferStubFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…