MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onDragEnd

Function onDragEnd

packages/react-aria/src/dnd/useDraggableItem.ts:92–97  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

90 state.moveDrag(e);
91 },
92 onDragEnd(e) {
93 let {dropOperation} = e;
94 let isInternal = dropOperation === 'cancel' ? false : isInternalDropOperation();
95 state.endDrag({...e, keys: state.draggingKeys, isInternal});
96 clearGlobalDnDState();
97 }
98 });
99
100 let item = state.collection.getItem(props.key);

Callers

nothing calls this directly

Calls 3

isInternalDropOperationFunction · 0.90
clearGlobalDnDStateFunction · 0.90
endDragMethod · 0.80

Tested by

no test coverage detected