Commit 9037797eef8b7b150191c5fc8fb3962b06205fe4
1 parent
ac6f8f44b4
Exists in
master
and in
2 other branches
bug for form reset
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/pages/Students/students.vue
... | ... | @@ -2279,8 +2279,12 @@ export default { |
2279 | 2279 | this.text = "New Student added successfully"; |
2280 | 2280 | this.color = "green"; |
2281 | 2281 | this.addStudentDialog = false; |
2282 | - this.clear(); | |
2283 | - this.clearParents(); | |
2282 | + this.$refs.parentForm.reset(); | |
2283 | + this.$refs.parentFormLgScr.reset(); | |
2284 | + this.$refs.form.reset(); | |
2285 | + this.e2 = 1; | |
2286 | + // this.clear(); | |
2287 | + // this.clearParents(); | |
2284 | 2288 | this.loading = false; |
2285 | 2289 | }) |
2286 | 2290 | .catch((error) => { | ... | ... |