vue-form icon indicating copy to clipboard operation
vue-form copied to clipboard

When you reset the state within a component that uses vue-form, the state is not reset

Open sidohaakma opened this issue 6 years ago • 2 comments

We have a component that uses vue-form. The component can get new input data via properties. When new data is passed to the component, the this.formstate._reset is not changing the state of the form (or we do not understand how we have to use this feature).

Expected behavior: When I call this.formstate._reset reset the formstate to the initial state.

Observed behavior: The former data objects are still in the formstate.

sidohaakma avatar Jan 23 '18 10:01 sidohaakma

this.formstate._reset will not reset the data in the inputs, only the validation state of the form. Is this not happening?

fergaldoyle avatar Jan 23 '18 16:01 fergaldoyle

@fergaldoyle I suggest to update Readme and make it more clear what it's only reset validation state not inputs values.

ilkome avatar Aug 18 '19 14:08 ilkome