Skip to content

Commit 8545d5f

Browse files
author
Bugra Firat
committed
fix unintended side effects from PR-#9.
remove class “sv-visibility-hidden” regardless of whether a move is executed, as this class gets added on click and not on move.
1 parent 5ad0a8b commit 8545d5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/angular-sortable-view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@
458458
html.off('mousemove touchmove', onMousemove);
459459
html.off('mouseup touchend', mouseup);
460460
html.removeClass('sv-sorting-in-progress');
461-
if(moveExecuted)
461+
if(moveExecuted){
462462
$controllers[0].$drop($scope.$index, opts);
463-
else
464-
$element.removeClass('sv-visibility-hidden');
463+
}
464+
$element.removeClass('sv-visibility-hidden');
465465
});
466466

467467
// onMousemove(e);

0 commit comments

Comments
 (0)