rniemeyer/knockout-sortable — Issue #6: There is no way for the connectWith option to be false
Author: Mark-Robinson
Created: 2012-02-28 15:45:34+00:00
State: open

In some case you do not want a connectWith selector to be set (eg. preventing of dragging and dropping of items between levels in a nested list). However, there does not currently seem to be a way to specify connectWith as its default value of false.

If no connectClass is specified on the plugin then it defaults to .ko_container

I have hacked the code around so that:

connectWith: connectClass ? "." + connectClass : false

and the default connectClass value is null:

connectClass: null,

This works for my situation but a more generic method is probably needed.