Make autofocus works in text editor

This commit is contained in:
Frederic Guillot
2016-11-27 18:57:05 -05:00
parent 453513da29
commit 0c426c6d99
4 changed files with 7 additions and 4 deletions

View File

@@ -55,7 +55,6 @@ KB.component('suggest-menu', function(containerElement, options) {
var lines = element.value.substring(0, element.selectionEnd).split("\n");
var lastLine = lines[lines.length - 1];
var words = lastLine.split(' ');
console.log(words);
return words[words.length - 1];
}