nestedSortable icon indicating copy to clipboard operation
nestedSortable copied to clipboard

IsTree dont expand when relocate

Open michaeljcoyne opened this issue 8 years ago • 1 comments

My IsTree is expanding when relocating (Dropping) - I dont want it to do this - how do i stop?

The following doesnt work:

relocate: function () { $('.menu-tree-li').removeClass('mjs-nestedSortable-expanded'); }

michaeljcoyne avatar Mar 18 '16 12:03 michaeljcoyne

I think you will just want to "refresh" the sortable when relocating.

relocate: function () {
$('.menu-tree-li').nestedSortable("refresh");
}

Have a look at #63 , my version of _clearEmpty stops the isTree from expanding

noraheuer avatar Apr 14 '16 16:04 noraheuer