MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / drop

Function drop

assets/js/DragToDo.js:186–198  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

184
185// Dropping Item in Column
186function drop(e) {
187 e.preventDefault();
188 const parent = listColumns[currentColumn];
189 // Remove Background Color/Padding
190 listColumns.forEach((column) => {
191 column.classList.remove('over');
192 });
193 // Add item to Column
194 parent.appendChild(draggedItem);
195 // Dragging complete
196 dragging = false;
197 rebuildArrays();
198}
199
200// On Load
201updateDOM();

Callers

nothing calls this directly

Calls 1

rebuildArraysFunction · 0.85

Tested by

no test coverage detected