Skip to content

Commit 8bab0b6

Browse files
committed
always set the val on element so initSelection has access to it. fixes select2#337
1 parent 1da4855 commit 8bab0b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,7 @@
16911691
this.clear();
16921692
return;
16931693
}
1694+
this.opts.element.val(val);
16941695
this.opts.initSelection(this.opts.element, function(data){
16951696
self.opts.element.val(!data ? "" : self.id(data));
16961697
self.updateSelection(data);

0 commit comments

Comments
 (0)