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

Reset Model doesn't work #295

Open
ValDewez opened this issue Sep 3, 2021 · 2 comments
Open

Reset Model doesn't work #295

ValDewez opened this issue Sep 3, 2021 · 2 comments
Labels

Comments

@ValDewez
Copy link
Contributor

ValDewez commented Sep 3, 2021

Hi,

I am currently working on a project and I am not able to reset my form. The model is set to {} but the data is still visible while in Vue inspector there is no data in the component.
I tried multiple way to clear like
for (var prop in obj) { if (obj.hasOwnProperty(prop)) { delete obj[prop]; } }

I also tried to simply reset my like this: model = {};

Here is a screenshot of my current data not resetting while VueJS inspector doesn't have any data from model.

image

Here is a screenshot from console.log I did before and after my reset

image

And Here is a capture with VueJs value from vjsf at blank but my data still on my screen

image

Edit: There is only 1 field on my screen with the data not appearing, others still not reset.

Thanks for the help,

Valentin

@albanm
Copy link
Member

albanm commented Sep 3, 2021

please have a look at #58

@ValDewez
Copy link
Contributor Author

ValDewez commented Sep 3, 2021

Thanks a lot, I'll take a look.

@github-actions github-actions bot added the Stale label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants