Merge branch 'master' of git://github.com/ivaynberg/select2
This commit is contained in:
commit
09d7a2de6e
@ -1018,7 +1018,7 @@
|
||||
this.updateSelection(data);
|
||||
} else {
|
||||
// val is an object
|
||||
this.opts.element.val((val === null) ? "" : val.id);
|
||||
this.opts.element.val((val === null || val === "") ? "" : val.id);
|
||||
this.updateSelection(val);
|
||||
}
|
||||
this.setPlaceholder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user