From defcfd81896a4742f7bc2b4354f61e84605a81f2 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 28 Mar 2023 22:27:50 -0400 Subject: [PATCH] better reset form after submit --- src/components/timer.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/timer.vue b/src/components/timer.vue index b98a750..a1f563e 100644 --- a/src/components/timer.vue +++ b/src/components/timer.vue @@ -32,7 +32,10 @@ import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'sessions', reqBody ).then(()=>{ - event.target.reset(); + this.description = null; + this.totalSeconds = 0; + this.savedPreviousSeconds = 0; + this.comments = null; }); },