From 72bbe9243cab145e258838a6d67799466edb1e03 Mon Sep 17 00:00:00 2001 From: Peter Grman Date: Tue, 18 Aug 2015 22:16:56 +0200 Subject: [PATCH] perform fix for https://github.com/angular-ui/ui-select/issues/974 Originally from https://github.com/homerjam/ui-select/commit/637be080c19f1c16e2e2c87fca30dbca3dff9369 --- src/uiSelectSortDirective.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uiSelectSortDirective.js b/src/uiSelectSortDirective.js index b01b21a9f..e23e5b285 100644 --- a/src/uiSelectSortDirective.js +++ b/src/uiSelectSortDirective.js @@ -93,6 +93,8 @@ uis.directive('uiSelectSort', ['$timeout', 'uiSelectConfig', 'uiSelectMinErr', f move.apply(theList, [droppedItemIndex, newIndex]); + scope.$parent.$selectMultiple.updateModel(); + scope.$apply(function() { scope.$emit('uiSelectSort:change', { array: theList,