From 250e39890e6c987df955985b3798932fe58f3297 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 19 Jul 2019 19:14:09 -0300 Subject: [PATCH] [FIX] Invite users auto complete cropping results (#15020) --- app/ui-flextab/client/tabs/inviteUsers.js | 27 +++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) 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; });