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.
Here is a screenshot from console.log I did before and after my reset
And Here is a capture with VueJs value from vjsf at blank but my data still on my screen
Edit: There is only 1 field on my screen with the data not appearing, others still not reset.
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.
Here is a screenshot from console.log I did before and after my reset
And Here is a capture with VueJs value from vjsf at blank but my data still on my screen
Edit: There is only 1 field on my screen with the data not appearing, others still not reset.
Thanks for the help,
Valentin