Skip to content

Commit

Permalink
[FIX] Remove AutoComplete parameters on inviteUsers (RocketChat#14906)
Browse files Browse the repository at this point in the history
For some reason, when the popupList container already had an item,
its width parameter would be set to a smaller value than the
initial one.
Removing the container selector and the position from
the AutoComplete parameters was a simple way to avoid the container's
width to change after the insertion of the first item.
  • Loading branch information
cesarmal committed Jul 12, 2019
1 parent c55747c commit 3c18e52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/ui-flextab/client/tabs/inviteUsers.js
Expand Up @@ -138,9 +138,7 @@ Template.inviteUsers.onCreated(function() {
this.ac = new AutoComplete({
selector: {
item: '.rc-popup-list__item',
container: '.rc-popup-list__list',
},
position: 'fixed',
limit: 10,
inputDelay: 300,
rules: [{
Expand Down

0 comments on commit 3c18e52

Please sign in to comment.