Skip to content

Commit

Permalink
Merge pull request #9176 from vitor-nagao/make-cross-icon-work
Browse files Browse the repository at this point in the history
[FIX] make the cross icon on user selection at channel creation page work
  • Loading branch information
rodrigok committed Dec 20, 2017
2 parents 57fe089 + c1d244e commit 9d10223
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rocketchat-ui/client/views/app/createChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ Template.createChannel.events({
const {username} = Blaze.getData(target);
t.selectedUsers.set(t.selectedUsers.get().filter(user => user.username !== username));
},
'click .rc-tags__tag-icon'(e, t) {
const {username} = Blaze.getData(t.find('.rc-tags__tag-text'));
t.selectedUsers.set(t.selectedUsers.get().filter(user => user.username !== username));
},
'change [name=setTokensRequired]'(e, t) {
t.tokensRequired.set(e.currentTarget.checked);
t.change();
Expand Down

0 comments on commit 9d10223

Please sign in to comment.