Ad

How Does SortableJS `revertClone` Option Work?

revertClone: boolean — revert cloned element to initial position after moving to a another list.

I can't get the difference between true or false in its officialdemo.

Any help?

Ad

Answer

If clone is enabled, it will show up when the user moves an element to another sortable. By default, it shows up at the last position the dragged element was in in its original sortable list. However, with revert clone, the clone will show up at the drag start position of the dragged element in the original list, rather than the last spot it was in.

Ad
source: stackoverflow.com
Ad