v-money
v-money copied to clipboard
Not working if has multiple inputs and write the input value is 1.00
<money v-model="form.item_price" v-bind="money" name="item_price" class="form-control" ></money>
<money v-model="discount.price" v-bind="money" name="price" class="form-control" ></money>
`money: {
decimal: '.',
thousands: ',',
prefix: '$ ',
suffix: ' ',
precision: 2,
masked: false,
},`
I have multiple money inputs in my component like this. And when I put 1.00 in money input behind. It is not going to work anymore and even makes my site stop. I can't do anything, can't click on input or do anything else. I have to close the browser.
Have no idea what is going on. Please help!
+1
here I added an :key to the parent object and it worked