Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sidohaakma opened this issue Jan 23, 2018 · 2 comments

Comments

@sidohaakma
Copy link

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
Copy link
Owner

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

@ilkome
Copy link

ilkome commented Aug 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants