Question

When finish dragging a HTML5 draggable element, the element will revert back to its original location. Is it possible to prevent the feedback image to revert?

Instead of reverting back, I want the feedback image to disappear after the drag is completed.

Was it helpful?

Solution

Draggable will revert unless it encounters with a droppable element. To make draggable disappears onmouseup, I've created a dummy droppable to accept the drop.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top