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

Event listener on keypress not needed #36

Open
GiuliaTeggi opened this issue Mar 29, 2018 · 1 comment
Open

Event listener on keypress not needed #36

GiuliaTeggi opened this issue Mar 29, 2018 · 1 comment

Comments

@GiuliaTeggi
Copy link

Just a minor 'issue'...Given that the input field is inside of a form with a 'submit button', you don't need to add an event listener to it to call the XHR request. The default behaviour of the form is to call the first 'submit' button available.

@helenzhou6
Copy link
Collaborator

Interesting point thanks!

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

No branches or pull requests

3 participants