Open guillome2k opened 6 years ago
I have the same probleme have you found any fix ?
I made a couple of changes for my project and is working very nice
May I ask you to share what you have done please ?
Ok, i dont remember exactly what was for my project specific or not.
Line 87, added:
if (options.onCreate) {
options.onCreate(sortableElement);
}
Line 142, changed:
if (e.item.previousElementSibling && from !== to) {
Line 156, changed:
if (!ko.isComputed(from)) { from.valueHasMutated(); }
Line 162, changed:
if (!ko.isComputed(from)) { from.valueHasMutated(); }
Line 163-167 changed:
if (from === to) { // Aanpassing WTG // Insert the item on its new position to().splice(newIndex, 0, itemVM); // Make sure to tell knockout that we've modified the actual array. to.valueHasMutated(); }
Ok perfect thanks you saved me a bunch of hours
Yw :) success!
Hi,
Thanks for this wonderfull binding. Only, the following line makes the sorting go wrong when i sort down:
http://jsfiddle.net/wgv76t25/36