better reset form after submit

mic_level
Matt Huntington 3 years ago
parent bf921a489a
commit defcfd8189

@ -32,7 +32,10 @@
import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'sessions', import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'sessions',
reqBody reqBody
).then(()=>{ ).then(()=>{
event.target.reset(); this.description = null;
this.totalSeconds = 0;
this.savedPreviousSeconds = 0;
this.comments = null;
}); });
}, },

Loading…
Cancel
Save