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

Commit 231af57

Browse files
committed
Remove left-over toLowerCase()s.
This was sort-of resolved by #216, but the query was still being lowercased in one place, meaning that the results were not being rendered (!!) when the query contained uppercase chars.
1 parent 1273e68 commit 231af57

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)