Drag cards on the class’s real task board: drag events in order on the board, when getData will answer, what happens when dragover does not call…
Kanban boards, reordering lists, uploading files by dragging: all this API. What keeps people stuck for hours is always the same: a drop that "does not work" with no error, or an empty getData(). Knowing the real mechanics makes you quick to debug, also with libraries that wrap the same events, and tells you when Pointer Events or the keyboard fit better.
A column has to say "yes" in dragover, and the data only opens at drop
onDrop is set Nearly always because dragover does not call e.preventDefault(), so the browser refuses and drop is never sent. The second cause: a dropEffect that is not part of effectAllowed.getData() gives an empty string when tried in dragover For safety, dataTransfer is protected during a drag: types can be read, getData() is empty. The data only opens at drop. To decide in dragover, check e.dataTransfer.types.includes(type).setData(type, value) in dragstart and getData(type) in drop: that is the only channel the browser carries.getData in the dragover row Empty, though types already holds the type. That is protected mode: the data can only be read at drop./* lupa */ in dragover, then drag again dragover keeps coming, drop never does, the card snaps back, and dragend says dropEffect none.copy + dropEffect copy The cursor turns into a plus sign, and the drop handler copies the card.