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

prevent form submission in README example #2233

Merged
merged 1 commit into from
Aug 19, 2020
Merged

Conversation

marcoow
Copy link
Member

@marcoow marcoow commented Aug 19, 2020

This adds e.preventDefault() to the LoginController's authenticate method in the README. If we leave that out, the form will actually be submitted and the page reloaded - this can be very confusing when simply copy/pasting the code from the example.

closes #2220

@marcoow marcoow requested a review from a team August 19, 2020 13:54
@marcoow marcoow merged commit f7636a8 into master Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login controller example at the readme
2 participants