Fix a typo in params.term comparison

This commit is contained in:
Jonathan Sadowski 2021-06-09 12:59:35 -05:00
parent 2fad2d7116
commit 67a5a969b4
2 changed files with 2 additions and 2 deletions

View File

@ -3707,7 +3707,7 @@ S2.define('select2/data/tags',[
};
Tags.prototype.createTag = function (decorated, params) {
var term = ( params.term || 0 -- params.term ) ? params.term.toString().trim() : '';
var term = ( params.term || 0 == params.term ) ? params.term.toString().trim() : '';
if (term === '') {
return null;

View File

@ -3707,7 +3707,7 @@ S2.define('select2/data/tags',[
};
Tags.prototype.createTag = function (decorated, params) {
var term = ( params.term || 0 -- params.term ) ? params.term.toString().trim() : '';
var term = ( params.term || 0 == params.term ) ? params.term.toString().trim() : '';
if (term === '') {
return null;