We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36c5a4 commit 36700eeCopy full SHA for 36700ee
src/angular-sortable-view.js
@@ -361,7 +361,12 @@
361
handle.off('mousedown touchstart', onMousedown);
362
});
363
364
- handle.on('mousedown touchstart', onMousedown);
+ $attrs.$observe('svDisabled', disabled => {
365
+ disabled = $scope.$eval(disabled);
366
+ if (!disabled) handle.on('mousedown touchstart', onMousedown);
367
+ else handle.off('mousedown touchstart', onMousedown);
368
+ });
369
+
370
$scope.$watch('$ctrl.handle', function(customHandle){
371
if(customHandle){
372
0 commit comments