v-currency-field
v-currency-field copied to clipboard
Invoking resetValidation() on a form which a curency field is part of clears its value
Hi,
It seems like calling resetValidation() on a form acts as if reset() was called instead. resetValidation() should only clear validation error messages without clearing the components' value...
Encountered the same problem today.
I use v-currency-input
on a form, that manipulates some items from the list, and I call resetValidation()
after another list item is selected. It seems, the input's value wouldn't reset if you provide a new value for key
prop
In my situation, I provided listItem's id as a value for key
prop:
v-currency-field(
v-model='listItem.value',
:key='listItem.id',
label='Value',
)