Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit e56789e

Browse files
committed
fix(multiple): setViewValue compatible with 1.3-rc.1+
1 parent 36ee169 commit e56789e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/select.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,8 @@
730730

731731
if ($select.multiple){
732732
scope.$watchCollection('$select.selected', function(newValue) {
733-
//On v1.2.19 the 2nd and 3rd parameteres are ignored
734-
//On v1.3.0-beta+ 3rd parameter (revalidate) is true, to force $parsers to recreate model
735-
ngModel.$setViewValue(newValue, null, true);
733+
ngModel.$setViewValue(''); //To force changes, since viewValue is checked byRef
734+
ngModel.$setViewValue(newValue);
736735
});
737736
focusser.prop('disabled', true); //Focusser isn't needed if multiple
738737
}else{

0 commit comments

Comments
 (0)