Skip to content

Commit 71ca77d

Browse files
committed
docs(*): new deploy (angular-ui/ui-select@331f819)
1 parent f77611a commit 71ca77d

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

dist/select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ui-select
33
* http://github.com/angular-ui/ui-select
4-
* Version: 0.16.1 - 2016-04-04T20:12:33.968Z
4+
* Version: 0.16.1 - 2016-04-06T16:22:20.124Z
55
* License: MIT
66
*/
77

dist/select.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ui-select
33
* http://github.com/angular-ui/ui-select
4-
* Version: 0.16.1 - 2016-04-04T20:12:33.892Z
4+
* Version: 0.16.1 - 2016-04-06T16:22:20.047Z
55
* License: MIT
66
*/
77

@@ -527,7 +527,11 @@ uis.controller('uiSelectCtrl',
527527
//Remove already selected items (ex: while searching)
528528
//TODO Should add a test
529529
ctrl.refreshItems(items);
530-
ctrl.ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
530+
531+
//update the view value with fresh data from items, if there is a valid model value
532+
if(angular.isDefined(ctrl.ngModel.$modelValue)) {
533+
ctrl.ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
534+
}
531535
}
532536
}
533537
});
@@ -1492,7 +1496,10 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
14921496
//Watch for external model changes
14931497
scope.$watchCollection(function(){ return ngModel.$modelValue; }, function(newValue, oldValue) {
14941498
if (oldValue != newValue){
1495-
ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
1499+
//update the view value with fresh data from items, if there is a valid model value
1500+
if(angular.isDefined(ngModel.$modelValue)) {
1501+
ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
1502+
}
14961503
$selectMultiple.refreshComponent();
14971504
}
14981505
});

dist/select.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/select.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/select.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)