Skip to content

Commit

Permalink
🚀 Adding input reset on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
guibrbs committed Jun 3, 2022
1 parent 006a348 commit 424f147
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/Form/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function Form( { isToForm } ) {
setTimeout(() => {
setIsEmailSent(false)
}, "4000")
e.target.reset()
})
.catch((err) => console.log(err))
}
Expand Down

0 comments on commit 424f147

Please sign in to comment.