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

Function registerDropItem

packages/react-aria/src/dnd/DragManager.ts:68–73  ·  view source on GitHub ↗
(item: DroppableItem)

Source from the content-addressed store, hash-verified

66}
67
68export function registerDropItem(item: DroppableItem) {
69 dropItems.set(item.element, item);
70 return (): void => {
71 dropItems.delete(item.element);
72 };
73}
74
75interface DragTarget {
76 element: FocusableElement;

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected