Skip to content

Commit

Permalink
[FIX] Invite users auto complete cropping results (#15020)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored and sampaiodiego committed Jul 19, 2019
1 parent 37527c0 commit 250e398
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions app/ui-flextab/client/tabs/inviteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

0 comments on commit 250e398

Please sign in to comment.