You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(); }
Activity
Insinfi commentedon Aug 21, 2018
I have the same probleme have you found any fix ?
guillome2k commentedon Aug 21, 2018
I made a couple of changes for my project and is working very nice
Insinfi commentedon Aug 21, 2018
May I ask you to share what you have done please ?
guillome2k commentedon Aug 21, 2018
Ok, i dont remember exactly what was for my project specific or not.
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(); }Insinfi commentedon Aug 21, 2018
Ok perfect thanks you saved me a bunch of hours
guillome2k commentedon Aug 21, 2018
Yw :) success!