Home › Forums › JavaScript › Drag and drop from localstorage HTML5 not working › Reply To: Drag and drop from localstorage HTML5 not working
November 15, 2016 at 9:36 am
#247860
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.