fergaldoyle / vue-form

Form validation for Vue.js 2.2+
MIT License
615 stars 90 forks source link

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

Open sidohaakma opened 6 years ago

sidohaakma commented 6 years ago

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.

fergaldoyle commented 6 years ago

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

ilkome commented 5 years ago

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