We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be535c7 commit a469143Copy full SHA for a469143
1 file changed
select2.js
@@ -960,7 +960,7 @@ the specific language governing permissions and limitations under the Apache Lic
960
} else if ("tags" in opts) {
961
opts.query = tags(opts.tags);
962
if (opts.createSearchChoice === undefined) {
963
- opts.createSearchChoice = function (term) { return {id: term, text: term}; };
+ opts.createSearchChoice = function (term) { return {id: $.trim(term), text: $.trim(term)}; };
964
}
965
if (opts.initSelection === undefined) {
966
opts.initSelection = function (element, callback) {
0 commit comments