Skip to content
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
@simonedavico

Description

@simonedavico

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');
} 

issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions