We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I define a onMove function to prevent list sorting this way:
onMove(event) { console.log("onMove called"); return false; }
and pass it to knockout-sortablejs:
<div data-bind="sortable: {foreach: documentList, options: { onMove: $component.onMove, handle: '.list-layout-handle'}}">
When I move an element, the onMove function is called, but the return value that should prevent sorting is ignored.
onMove
The solution seems to be adding a missing return to lines 79 and 81 this way:
return
if (handler) return handler(e, itemVM, parentVM, collection, bindings); if (eventHandlers[eventType]) return eventHandlers[eventType](e, itemVM, parentVM, collection, bindings);
Hope it can help mario
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I define a onMove function to prevent list sorting this way:
and pass it to knockout-sortablejs:
When I move an element, the
onMove
function is called, but the return value that should prevent sorting is ignored.The solution seems to be adding a missing
return
to lines 79 and 81 this way:Hope it can help
mario
The text was updated successfully, but these errors were encountered: