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

Function dragleave

frontend/src/hooks/useCardDragMove.ts:57–63  ·  view source on GitHub ↗
(e: DragEvent, id: string)

Source from the content-addressed store, hash-verified

55 };
56
57 const dragleave = (e: DragEvent, id: string) => {
58 if (!containerState.isDesignMode) return;
59 if (!(e.currentTarget as HTMLElement)?.contains(e.relatedTarget as HTMLLIElement)) {
60 removeDragClass(e.target as HTMLElement);
61 }
62 e.preventDefault();
63 };
64
65 const dragstart = (e: DragEvent, id: string) => {
66 if (!containerState.isDesignMode) return;

Callers

nothing calls this directly

Calls 1

removeDragClassFunction · 0.85

Tested by

no test coverage detected