v-currency-field icon indicating copy to clipboard operation
v-currency-field copied to clipboard

Invoking resetValidation() on a form which a curency field is part of clears its value

Open jfstgermain opened this issue 3 years ago • 1 comments

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

jfstgermain avatar Jan 27 '22 21:01 jfstgermain

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',
)

creewick avatar Mar 11 '24 10:03 creewick