jonathanpmartins / v-money3

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

Got error trying to use with Quasar V2 #95

Closed MaikonPanazzolo closed 6 months ago

MaikonPanazzolo commented 8 months ago

I'm using Quasar V2 with Vue3 and I got the following error trying to use with QInput component from Quasar:

image

The way I'm declaring the mask is in a mixin boot file:

image

Obs: I've tryed to use with a pure html input component and it's working, I mean, maybe the directive cannot access element within QInput.

jonathanpmartins commented 6 months ago

You are correct. It cannot be set directly on a QInput element. Take a look at this comment: https://github.com/jonathanpmartins/v-money3/issues/92#issuecomment-1972154455. It is a custom component that hooks up into QField. Hope it helps!