Skip to content

Commit

Permalink
Fix failing auto-complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Feb 8, 2024
1 parent 8395224 commit d7bee1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/headless/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 3 additions & 0 deletions src/shared/autocomplete/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion src/shared/autocomplete/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7bee1c

Please sign in to comment.