vuejs-tips / v-money

Tiny (<2k gzipped) input/directive mask for currency
https://vuejs-tips.github.io/v-money/
775 stars 255 forks source link

Not working if has multiple inputs and write the input value is 1.00 #78

Open bocanhcam opened 5 years ago

bocanhcam commented 5 years ago

<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!

fhferreira commented 4 years ago

+1

fhferreira commented 4 years ago

here I added an :key to the parent object and it worked