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

Function dragLeave

assets/js/DragNDrop.js:39–43  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

37}
38
39function dragLeave(event) {
40 if (!event.target.classList.contains("dropped")) {
41 event.target.classList.remove("droppable-hover");
42 }
43}
44
45function drop(event) {
46 event.preventDefault(); // This is in order to prevent the browser default handling of the data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected