Reintroduce word search in board selector #3052

This commit is contained in:
Konstantin Vorobyev 2017-02-23 22:18:46 +09:00
parent 3d7a682ec7
commit 2f1e87a1bc
1 changed files with 1 additions and 1 deletions

View File

@ -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']) {