We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89bb328 commit 1cff8d4Copy full SHA for 1cff8d4
1 file changed
select2.js
@@ -2701,7 +2701,7 @@ the specific language governing permissions and limitations under the Apache Lic
2701
minimumInputLength: 0,
2702
maximumInputLength: null,
2703
maximumSelectionSize: 0,
2704
- id: function (e) { return e.id; },
+ id: function (e) { return e == undefined ? null : e.id; },
2705
matcher: function(term, text) {
2706
return (''+text).toUpperCase().indexOf((''+term).toUpperCase()) >= 0;
2707
},
0 commit comments