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

New Rule: Form without event.preventDefault in onSubmit #21

Closed
karlhorky opened this issue Nov 27, 2021 · 1 comment
Closed

New Rule: Form without event.preventDefault in onSubmit #21

karlhorky opened this issue Nov 27, 2021 · 1 comment
Assignees

Comments

@karlhorky
Copy link
Member

Many students run into the issue of forgetting to use event.preventDefault in their onSubmit, leading to longer debugging sessions

Since we teach to always prevent the default and manually handle the form submission using fetch, we can warn on this

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