Commit b6f5cd2c authored by JC Brand's avatar JC Brand

Use the auto_first setting

parent 9a8d3b69
......@@ -326,7 +326,6 @@
}
this.suggestions = this.suggestions.slice(0, this.max_items);
this.suggestions.forEach((text) => this.ul.appendChild(this.item(text, value)));
this.next();
if (this.ul.children.length === 0) {
this.close({'reason': 'nomatches'});
......
......@@ -612,6 +612,7 @@
initAutoComplete () {
this.auto_complete = new _converse.AutoComplete(this.el, {
'auto_first': true,
'auto_evaluate': false,
'min_chars': 1,
'match_current_word': true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment