Skip to content

Commit

Permalink
Fix wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored Oct 17, 2019
1 parent 5057cae commit bbb7678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ui-message/client/messageBox/messageBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Template.messageBox.onCreated(function() {

Template.messageBox.onRendered(function() {
const $input = $(this.find('.js-input-message'));
this.input = $input[0];
this.source = $input[0];
$input.on('dataChange', () => {
const messages = $input.data('reply') || [];
this.replyMessageData.set(messages);
Expand Down Expand Up @@ -327,7 +327,7 @@ Template.messageBox.events({
return;
}

EmojiPicker.open(instance.input, (emoji) => {
EmojiPicker.open(instance.source, (emoji) => {
const emojiValue = `:${ emoji }: `;

const { input } = instance;
Expand Down

0 comments on commit bbb7678

Please sign in to comment.