aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/EditPage.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/EditPage.vue b/src/components/EditPage.vue
index 71d1e6b..21d9ea9 100644
--- a/src/components/EditPage.vue
+++ b/src/components/EditPage.vue
@@ -78,7 +78,7 @@
</v-btn>
<v-btn variant="outlined" class="mr-4" @click="reset(this.$refs.form2)">
- Reset Validation
+ Reset Form
</v-btn>
<v-btn variant="outlined" class="mr-4" @click="deleteItem">
Delete Item
@@ -126,9 +126,9 @@ export default {
form.validate();
},
reset(form) {
- // Resets validation of all registered inputs without modifying their state.
- // TODO: clearify this (do we need form.reset() ?)
- form.resetValidation();
+ // Resets the state of all registered inputs (inside the form) to {} for arrays and null for all other values.
+ // Resets errors bag when using the lazy-validation prop.
+ form.reset();
},
write(form) {
if (form == this.$refs.form1 && this.title in this.LSData) {