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

Function getDropOperation

packages/react-aria/src/dnd/useDroppableItem.ts:54–64  ·  view source on GitHub ↗
(types, allowedOperations)

Source from the content-addressed store, hash-verified

52 element: ref.current,
53 target: options.target,
54 getDropOperation(types, allowedOperations) {
55 let {draggingKeys} = globalDndState;
56 let isInternal = isInternalDropOperation(droppableCollectionRef);
57 return state.getDropOperation({
58 target: options.target,
59 types,
60 allowedOperations,
61 isInternal,
62 draggingKeys
63 });
64 },
65 activateButtonRef: options.activateButtonRef
66 });
67 }

Callers

nothing calls this directly

Calls 2

isInternalDropOperationFunction · 0.90
getDropOperationMethod · 0.80

Tested by

no test coverage detected