Skip to content

Commit 4469fd7

Browse files
committed
Merge pull request angular-ui#146 from angular-ui/fixTests
Attempting to fix tests throwing errors
2 parents 60fa132 + 8e3e4bf commit 4469fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
200200
elm.select2(opts);
201201

202202
// Set initial value - I'm not sure about this but it seems to need to be there
203-
elm.select2('val', controller.$viewValue);
203+
elm.select2('data', controller.$modelValue);
204204
// important!
205205
controller.$render();
206206

0 commit comments

Comments
 (0)