summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-23 17:53:37 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-23 17:53:37 -0500
commitd6d12f96a4309cd12925b052874f685351726aa9 (patch)
treeed611a151a75bb84f1640f9850758a7b1dd6aed6
parent110e7dd7a7efc323eff7d56b6e1defa766b6d0dd (diff)
parent2f1e87a1bc89926e2948afc195ef223b86ba3c16 (diff)
Merge pull-request #3071
-rw-r--r--assets/js/components/select-dropdown-autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/components/select-dropdown-autocomplete.js b/assets/js/components/select-dropdown-autocomplete.js
index c2c36f5b..188dd5e9 100644
--- a/assets/js/components/select-dropdown-autocomplete.js
+++ b/assets/js/components/select-dropdown-autocomplete.js
@@ -161,7 +161,7 @@ KB.component('select-dropdown-autocomplete', function(containerElement, options)
var hasActiveItem = false;
for (var i = 0; i < items.length; i++) {
- if (text.length === 0 || items[i]['data-label'].toLowerCase().indexOf(text.toLowerCase()) === 0) {
+ if (text.length === 0 || items[i]['data-label'].toLowerCase().indexOf(text.toLowerCase()) > -1) {
var item = items[i];
if (typeof options.defaultValue !== 'undefined' && String(options.defaultValue) === item['data-value']) {