rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
548 stars 128 forks source link

sortable behaviour inconsistent with droppable/draggable #195

Open bago opened 6 years ago

bago commented 6 years ago

I see sortable implements this feature:

https://github.com/rniemeyer/knockout-sortable/blob/426300f22880f651a8f376f772779c504fd673c1/src/knockout-sortable.js#L130

Is that "wanted"? The documentation doesn't document that behavior, that would only be needed if you want to be able to put default options directly in the binding by using

ko.bindingHandler.sortable.options = {}

Also, the same behaviour cannot be find in draggable and droppable wrappers.