diff --git a/app/ui-flextab/client/tabs/inviteUsers.js b/app/ui-flextab/client/tabs/inviteUsers.js index d4f1cc8bdfe2..35042d4d0afd 100644 --- a/app/ui-flextab/client/tabs/inviteUsers.js +++ b/app/ui-flextab/client/tabs/inviteUsers.js @@ -137,25 +137,28 @@ Template.inviteUsers.onCreated(function() { this.ac = new AutoComplete({ selector: { + anchor: '.rc-input__label', item: '.rc-popup-list__item', container: '.rc-popup-list__list', }, position: 'fixed', limit: 10, inputDelay: 300, - rules: [{ - // @TODO maybe change this 'collection' and/or template - collection: 'UserAndRoom', - subscription: 'userAutocomplete', - field: 'username', - matchAll: true, - filter, - doNotChangeWidth: false, - selector(match) { - return { term: match }; + rules: [ + { + // @TODO maybe change this 'collection' and/or template + collection: 'UserAndRoom', + subscription: 'userAutocomplete', + field: 'username', + matchAll: true, + filter, + doNotChangeWidth: false, + selector(match) { + return { term: match }; + }, + sort: 'username', }, - sort: 'username', - }], + ], }); this.ac.tmplInst = this; });