SortableJS / knockout-sortablejs

A Knockout.js binding to SortableJS.
22 stars 19 forks source link

disabled option is not updated #3

Open avados opened 8 years ago

avados commented 8 years ago

Hi,

My list is observable, and depending on the type, sorting should be disabled or enabled, but it seems that when my boolean is updated, it is not in sortable:

<ul data-bind="sortable: {foreach: layerArray, disabled: layerEditable(), options: { onEnd: stepSwitchPositionEnd , handle: '.dragHandle'}}">

avados commented 8 years ago

I was able to go over this problem setting the css for the handle when needed, but the original issue is still there

itaibh commented 7 years ago

I suggested a fix (pull request) in issue #5