shershen08/emoji-vue

Reset text input?

Closed this issue · 2 comments

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.

Indeed that was missing,
I've added it in coming version - 5e361ea

so it could be executed as follows:

clearTextarea(){
      this.$refs.emojiTextarea.clear()
    },  

Add this in 0.2.4 and now in readme code sample - https://github.com/shershen08/emoji-vue#use-