We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42d3ef4 + a469143 commit 37073f6Copy full SHA for 37073f6
1 file changed
select2.js
@@ -955,7 +955,7 @@ the specific language governing permissions and limitations under the Apache Lic
955
} else if ("tags" in opts) {
956
opts.query = tags(opts.tags);
957
if (opts.createSearchChoice === undefined) {
958
- opts.createSearchChoice = function (term) { return {id: term, text: term}; };
+ opts.createSearchChoice = function (term) { return {id: $.trim(term), text: $.trim(term)}; };
959
}
960
if (opts.initSelection === undefined) {
961
opts.initSelection = function (element, callback) {
0 commit comments