jonathanpmartins / v-money3

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

Directive Model Modifier not working #97

Closed usmanibrahim74 closed 3 weeks ago

usmanibrahim74 commented 1 month ago

config

{ prefix: "£", suffix: "", thousands: ",", decimal: ".", precision: 0, disableNegative: true, disabled: false, min: null, max: null, allowBlank: true, minimumNumberOfCharacters: 0, shouldRound: true, focusOnRight: false, masked: false, modelModifiers: { number: true }, }

image

jonathanpmartins commented 1 month ago

It seems that you are not using the directive in a native html input. This is probably the reason why you are getting into problems. In your case, it is best to use the component, not the directive.

usmanibrahim74 commented 3 weeks ago

I will try it. thanks for pointing out this