MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / drop

Function drop

frontend/src/hooks/useCardDragMove.ts:70–77  ·  view source on GitHub ↗
(e: DragEvent, myId: string)

Source from the content-addressed store, hash-verified

68 };
69
70 const drop = (e: DragEvent, myId: string) => {
71 if (!containerState.isDesignMode) return;
72 e.preventDefault();
73 removeDragClass(e.target as HTMLElement);
74 const sourceConfig = JSON.parse(e?.dataTransfer?.getData("text/plain") || "{}");
75 const sourceId = sourceConfig?.id;
76 moveCardItem(sourceId, myId);
77 };
78
79 const dropToNewArea = (e: DragEvent, followId: string) => {
80 if (!containerState.isDesignMode) return;

Callers

nothing calls this directly

Calls 2

removeDragClassFunction · 0.85
moveCardItemFunction · 0.70

Tested by

no test coverage detected