This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
Providing a start function in the sortable options breaks the sorting #169
Closed
Description
I ran into this issue while trying to add a class when starting to drag, and removing it on stop. It seems like ui-sortable-placeholder objects are not properly deleted, and sometimes empty elements are added to the sortable, as if in the underlying model an empty object was added to the array.
You can verify it by taking the basic example in the docs and adding the code below to sortableOptions
:
start: function(e, ui) {
ui.item.addClass('foobar');
}