Closed yogesh-gohil closed 3 years ago
@yogesh-gohil
Would be nice to have more information about the problem. I could not find it! Can you elaborate a codesandbox example?
This is a working example of directive usage.
<input v-model.lazy="amount" v-money3="config" />
import { Money3Directive } from "v-money3";
export default {
data() {
return {
amount: 0,
};
},
computed: {
config() {
return {
decimal: ",",
thousands: ".",
prefix: "R$ ",
suffix: "",
precision: 2,
masked: false /* doesn't work with directive */,
};
},
},
directives: {
money3: Money3Directive,
},
};
Hey, @yogesh-gohil. Could you please update to the last 3.13.6
version and test if your problem persists? I made a fix for a problem that was happening if you initialized the component using a null
value for v-model.
closed by user timeout
https://github.com/jonathanpmartins/v-money3/issues/19 Could this be related @yogesh-gohil @botura ?
Probably yes, errors seen to be the same.
I have created the v-money3 directive and use it on the input element but its not reactive its give bellow error on console