[Vuejs]-Vue input clears on click

0👍

The currency filter should not be used in the v-model and you should probably remove the value="{{ avr | currency }}" because v-model will take care of the value.

You could format the request to currency format before assigning it to var so your input will look like this:

<input type="text" name="avr" v-model="avr">

then on ready:

this.avr = formatToCurrencyFn(this.meta[i].metadata_value);

Leave a comment