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

Commit ffdb87b

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,8 @@
732732
scope.$watchCollection('$select.selected', function(newValue) {
733733
//On v1.2.19 the 2nd and 3rd parameteres are ignored
734734
//On v1.3.0-beta+ 3rd parameter (revalidate) is true, to force $parsers to recreate model
735-
ngModel.$setViewValue(newValue, null, true);
735+
ngModel.$setViewValue('');
736+
ngModel.$setViewValue(newValue);
736737
});
737738
focusser.prop('disabled', true); //Focusser isn't needed if multiple
738739
}else{

0 commit comments

Comments
 (0)