Native HTML5 Drag and Drop Playground

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…

Why it matters

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.

The key idea

A column has to say "yes" in dragover, and the data only opens at drop

Common mistakes

Try it in this playground