Add refreshPositions
with value true
to your draggable
. Note, however, that there will be a performance hit per https://api.jqueryui.com/draggable/#option-refreshPositions. So it is likely that your workaround is a better option, but maybe this answer could help someone else.
$( "#draggable" ).draggable({
revert:true,
refreshPositions: true
});