Skip to content

Commit

Permalink
Update model on sort (fixes angular-ui#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
homerjam committed Jun 23, 2015
1 parent 2d1422d commit 637be08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uiSelectSortDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ uis.directive('uiSelectSort', ['$timeout', 'uiSelectConfig', 'uiSelectMinErr', f
}

move.apply(theList, [droppedItemIndex, newIndex]);

scope.$parent.$selectMultiple.updateModel();

scope.$apply(function() {
scope.$emit('uiSelectSort:change', {
Expand Down

0 comments on commit 637be08

Please sign in to comment.