summaryrefslogtreecommitdiff
path: root/assets/js/components/select-dropdown-autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/components/select-dropdown-autocomplete.js')
-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']) {