We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e53a7 commit ce54a33Copy full SHA for ce54a33
vue-json-form/src/components/FormRoot.vue
@@ -227,15 +227,15 @@ function initDefaultFormData() {
227
};
228
}
229
230
-function cleanFormData() {
+function setDefaultFormData() {
231
formData.value = {
232
...defaultFormData.value,
233
234
235
236
function resetForm(evt: Event) {
237
evt.preventDefault();
238
- cleanFormData();
+ setDefaultFormData();
239
formStateWasValidated.value = false;
240
241
@@ -312,6 +312,7 @@ onBeforeMount(async () => {
312
renderInterface: props.renderInterface,
313
});
314
initDefaultFormData();
315
316
317
318
watch(props, (newVal) => {
0 commit comments