Rectangle 27 0

jQuery Sortable Hotfix with animation

I ended up creating a new event called beforeRevert which should return true or false. If false then the cancel function is called and the item is animated back to its original position. I didn't code this with the helper option in mind, so it would probably need some additional work to support that.

Can you please provide a working fiddle?

javascript - jQuery Sortable - cancel and revert not working as expect...

javascript jquery jquery-ui