jquery-sortable icon indicating copy to clipboard operation
jquery-sortable copied to clipboard

onDragStart won't get fired

Open LukasBombach opened this issue 8 years ago • 2 comments

Hi

i have a very simple example in which I want the user to choose items from one list and have him drop it in another. Items taken from the list to choose from should not get removed from that list. The code I wrote is fairly simple:

selectedArticlesList.sortable({
    group: 'front-page-articles'
});

articlesToChooseFrom.sortable({
    group: 'front-page-articles',
    drop: false,
    onDragStart: function ($item, container, _super) {
        console.log('drag start', $item);
        $item.clone().insertAfter($item);
        _super($item, container);
    }
});

However I onDragStart does not seem to get fired. the console.log is not getting executed.

LukasBombach avatar May 22 '16 14:05 LukasBombach

Make sure you are looking at the correct Sortable. I got this confused with the rubaxa Sortable.

JohnScottMcNerney avatar May 20 '19 17:05 JohnScottMcNerney

Wow, talk about reviving the dead :D

LukasBombach avatar May 20 '19 17:05 LukasBombach