jonathanpmartins / v-money3

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

Possibility to enable inheritAttrs #85

Open matheusilva opened 1 year ago

matheusilva commented 1 year ago

I would like to know if it's possible to enable this feature because in my use case, I perform some validations on events when entering and exiting the field (focus/blur/click). Since attribute inheritance is disabled and there are no listener declarations in the component, I am unable to use this component.

Note: I am migrating the application from Vue 2 to Vue 3.

jonathanpmartins commented 9 months ago

It is handled here: https://github.com/jonathanpmartins/v-money3/blob/ad029f9f838d7f8521daa772ac8a670adad22130/src/component.vue#L4

And here: https://github.com/jonathanpmartins/v-money3/blob/ad029f9f838d7f8521daa772ac8a670adad22130/src/component.vue#L202-L211

All properties you include in the component should be passed down to the input element. Your focus, blur, or click events should work properly.

Have you encountered any issues during your migration?