Send message when pressing enter in the emoji picker

This commit is contained in:
Ken Powers 2019-05-31 17:58:53 -04:00 committed by Scott Nonnenberg
parent 0a16c905b9
commit d23efc6717
3 changed files with 30 additions and 6 deletions

View file

@ -318,6 +318,9 @@
setupEmojiPickerButton() {
const props = {
onForceSend: () => {
this.sendMessage({});
},
onPickEmoji: e => this.insertEmoji(e),
onClose: () => {
const textarea = this.$messageField[0];