summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Vorobyev <vorobyev@coacha.com>2017-02-23 22:18:46 +0900
committerKonstantin Vorobyev <vorobyev@coacha.com>2017-02-23 22:18:46 +0900
commit2f1e87a1bc89926e2948afc195ef223b86ba3c16 (patch)
treef6daf68122a56a6baa3b213d11b41277757158f9
parent3d7a682ec794b7485fc979ca910e22c6438a3c26 (diff)
Reintroduce word search in board selector #3052
-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']) {