Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit ef52bcd

Browse files
committed
Merge pull request #231 from adammck/no_really_dont_lowercase_the_search_term
Fix results when query contains uppercase characters
2 parents 1273e68 + 231af57 commit ef52bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ $.TokenList = function (input, url_or_data, settings) {
795795
cache.add(cache_key, settings.jsonContainer ? results[settings.jsonContainer] : results);
796796

797797
// only populate the dropdown if the results are associated with the active search query
798-
if(input_box.val().toLowerCase() === query) {
798+
if(input_box.val() === query) {
799799
populate_dropdown(query, settings.jsonContainer ? results[settings.jsonContainer] : results);
800800
}
801801
};

0 commit comments

Comments
 (0)