-
Notifications
You must be signed in to change notification settings - Fork 63
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
Pressing enter in the postal code form refreshes page #293
Labels
good first issue
Good for newcomers
Comments
9 tasks
manishapriya94
moved this to Todo: fellow's pick of issue for the week
in Amplify Pairing Sign Up
Nov 7, 2022
Sure, I will start working on this (: @paramsiddharth |
tdo95
moved this from Todo: fellow's pick of issue for the week
to In Progress
in Amplify Pairing Sign Up
Nov 8, 2022
Repository owner
moved this from In Progress: fellows finalize into PR in pair hour
to Done
in Amplify Pairing Sign Up
Nov 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pressing enter in the postal code form refreshes page
After writing the postal code, it is user-tendency to press enter and expect the form to submit itself.
However, it doesn't happen right now, because the submit behaviour has only been attached to the button
and not the form. The submission behaviour of the form needs to be modified.
Refer
Possible Solution
on-submit
property of thev-form
needs to recreate theon-click
behaviour exhibited by the submit button.e
,e.preventDefault()
needs to be called to prevent the default form submission behaviour i.e. Making a request to the current route with the data, which causes the page refresh.The text was updated successfully, but these errors were encountered: