Skip to content

Commit 09d7a2d

Browse files
committed
Merge branch 'master' of git://github.com/ivaynberg/select2
2 parents b034a55 + a542280 commit 09d7a2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@
10181018
this.updateSelection(data);
10191019
} else {
10201020
// val is an object
1021-
this.opts.element.val((val === null) ? "" : val.id);
1021+
this.opts.element.val((val === null || val === "") ? "" : val.id);
10221022
this.updateSelection(val);
10231023
}
10241024
this.setPlaceholder();

0 commit comments

Comments
 (0)