From 017cd22fd643885b5b94ff79c24958cf27737b63 Mon Sep 17 00:00:00 2001 From: Israel Date: Mon, 4 Dec 2017 03:05:07 -0500 Subject: [PATCH] Dropdown items casing issue --- src/js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/autocomplete.js b/src/js/autocomplete.js index 64b708e..b53253a 100644 --- a/src/js/autocomplete.js +++ b/src/js/autocomplete.js @@ -59,7 +59,7 @@ function completely(config) { divRow.onmouseout = onMouseOut; divRow.onmousedown = onMouseDown; divRow.__hint = array[i]; - divRow.innerHTML = token + '' + array[i].substring(token.length) + ''; + divRow.innerHTML = array[i].substring(0, token.length) + '' + array[i].substring(token.length) + ''; rows.push(divRow); elem.appendChild(divRow); }