creativetimofficial / ct-vue-paper-dashboard-pro

Vue Paper Dashboard PRO - made by Creative Tim
https://www.creative-tim.com/product/vue-paper-dashboard-pro
41 stars 13 forks source link

Get event with @input on fg-input #88

Open chrisdel101 opened 5 years ago

chrisdel101 commented 5 years ago

I have and fg-input that looks something like this.

 <fg-input 
                v-model="newReward.description"
                placeholder="Describe the reward to be given out"
                label="Reward Name"
                maxlength="200"
                :error="errors.createNameError"
                name="createName"
                @input="handleInputBlanks($event)">
              </fg-input>
 handleInputBlanks(e){
         console.log(e) => 'HELLO'
}

However when I print out handleInput I do not get the event, like I do with an @change. I only get the text from the input. But I need the event to see which input I am on.

How can I return the full event here?