Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 8e3e4bf

Browse files
committed
Attempting to fix tests throwing errors
They are complaining about `initSelection()` which shouldn't be needed since we're providing rich data instead of simple values.
1 parent 60fa132 commit 8e3e4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select2.js

Lines changed: 1 addition & 1 deletion
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)