Skip to content

Commit

Permalink
destroy form after validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bigvaimarcella committed Jun 23, 2023
1 parent 2fcb984 commit 1b09e5e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ export default {
await this.delay(500);
this.vForm.clearServerErrors();
this.vForm.resetValue();
this.vForm.clear();
const check = {
shouldContinueValidation: this.index < this.Json.length,
};
Expand Down Expand Up @@ -403,6 +404,7 @@ export default {
endValidation(errors) {
this.progress = false;
this.globalError = errors;
this.vForm.destroy();
if (this.globalError.length == 0) {
this.$emit('save-bulk-data', this.Json);
} else {
Expand Down

0 comments on commit 1b09e5e

Please sign in to comment.