diff --git a/src/headless/index.js b/src/headless/index.js index ecf557bf3c..0737a0ca59 100644 --- a/src/headless/index.js +++ b/src/headless/index.js @@ -17,7 +17,7 @@ dayjs.extend(advancedFormat); */ import "./plugins/bookmarks/index.js"; // XEP-0199 XMPP Ping -import "./plugins/bosh/index.js"; // XEP-0206 BOSH +import "./plugins/bosh/index.js"; // XEP-0206 BOSH import "./plugins/caps/index.js"; // XEP-0115 Entity Capabilities import "./plugins/chat/index.js"; // RFC-6121 Instant messaging import "./plugins/chatboxes/index.js"; diff --git a/src/shared/autocomplete/autocomplete.js b/src/shared/autocomplete/autocomplete.js index db4ade05da..883650c35e 100644 --- a/src/shared/autocomplete/autocomplete.js +++ b/src/shared/autocomplete/autocomplete.js @@ -265,6 +265,9 @@ export class AutoComplete extends EventEmitter(Object) { } } + /** + * @param {KeyboardEvent} [ev] + */ async evaluate (ev) { const selecting = this.selected && ev && ( ev.keyCode === converse.keycodes.UP_ARROW || diff --git a/src/shared/autocomplete/component.js b/src/shared/autocomplete/component.js index 2a9f3feda2..2fb6360a02 100644 --- a/src/shared/autocomplete/component.js +++ b/src/shared/autocomplete/component.js @@ -77,7 +77,7 @@ export default class AutoCompleteComponent extends CustomElement { this.min_chars = 1; this.triggers = ''; this.getAutoCompleteList = null; - this.list = []; + this.list = null; this.name = ''; this.placeholder = ''; this.required = false;