Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Drag and drop from localstorage HTML5 not working Reply To: Drag and drop from localstorage HTML5 not working

#247860
Shikkediel
Participant

It must be somehow caused by the element not being dragged into the droppable area, making the revert parameter active because of this. Not sure how to solve this better than by just disabling it for the elements present inside it at the start:

$('#droppable .ui-draggable').draggable( "option", "revert", false );

https://jsfiddle.net/dL4p5018/

Maybe another member has more experience with it.