1
0
mirror of synced 2025-02-17 04:23:15 +03:00

Fix empty Select2 input from throwing an error when attempting to selecting a value.

This commit is contained in:
Kevin Chung 2012-09-09 19:06:14 -07:00
parent 819cca7e70
commit 770924ca8d

View File

@ -2361,7 +2361,7 @@
return markup.join("");
},
formatSelection: function (data, container) {
return data.text;
return data ? data.text : undefined;
},
formatResultCssClass: function(data) {return undefined;},
formatNoMatches: function () { return "No matches found"; },