koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
538 stars 154 forks source link

Reset Model doesn't work #295

Open ValDewez opened 2 years ago

ValDewez commented 2 years ago

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 commented 2 years ago

please have a look at https://github.com/koumoul-dev/vuetify-jsonschema-form/issues/58

ValDewez commented 2 years ago

Thanks a lot, I'll take a look.