Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The contact us form does not clear after submission #52

Open
MrRoyce opened this issue Mar 26, 2022 · 2 comments
Open

The contact us form does not clear after submission #52

MrRoyce opened this issue Mar 26, 2022 · 2 comments

Comments

@MrRoyce
Copy link

MrRoyce commented Mar 26, 2022

*Describe the bug
The contact us form does not clear after submission

To Reproduce
Steps to reproduce the behavior:

  1. Go to ‘contact form'
  2. Enter data
  3. Submit

Expected behavior
The form should clear

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac OS
    -Chrome

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@MrRoyce MrRoyce changed the title The contact us form does not emp The contact us form does not clear after submission Mar 26, 2022
@MrRoyce
Copy link
Author

MrRoyce commented Mar 26, 2022

It is failing for me when I run locally or on the server but its working on your demo page.

@hlabella
Copy link
Contributor

hlabella commented Dec 24, 2023

Inside handleSubmit, add:
... clearState(); e.target.reset(); // Reset form fields after successful submission ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants