jonathanpmartins / v-money3

Vue3 currency input/directive mask
MIT License
103 stars 27 forks source link

@change evento not send value #62

Closed Laranjeiras closed 2 years ago

Laranjeiras commented 2 years ago

@change event is not returning the value, it is returning the component.

image

jonathanpmartins commented 2 years ago

Could you elaborate more?

If you need to get the value within the event listener function, something like this should work:

<v-money3 @change="changed">
changed(event) => {
  console.log(event.target.value)
}