knockout-sortablejs icon indicating copy to clipboard operation
knockout-sortablejs copied to clipboard

disabled option is not updated

Open avados opened this issue 9 years ago • 2 comments
trafficstars

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 avatar Aug 05 '16 04:08 avados

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

avados avatar Aug 05 '16 04:08 avados

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

itaibh avatar Oct 10 '16 20:10 itaibh