Reset text input?
Closed this issue · 2 comments
sheriffmarley commented
How can I reset the text in the plugin?
<VueEmoji @input="onInput" :value="myText" width="500" height="25"/>
...
onInput(event){
this.messageText = event.data;
},
I tried
reset(){
this.myText = "";
this.messageText = "";
}
but it still shows the content.
shershen08 commented
Indeed that was missing,
I've added it in coming version - 5e361ea
so it could be executed as follows:
clearTextarea(){
this.$refs.emojiTextarea.clear()
},
shershen08 commented
Add this in 0.2.4
and now in readme code sample - https://github.com/shershen08/emoji-vue#use-