#101 - bind outside click, add emoji to post status form
This commit is contained in:
parent
2ab915b486
commit
885f4c9924
4 changed files with 59 additions and 21 deletions
|
@ -108,7 +108,6 @@ const EmojiInput = {
|
|||
},
|
||||
onEmoji (emoji) {
|
||||
const newValue = this.value.substr(0, this.caret) + emoji + this.value.substr(this.caret)
|
||||
this.$refs.input.focus()
|
||||
this.$emit('input', newValue)
|
||||
this.caret += emoji.length
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue