Form Submits on Enter Even for Textarea #181
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So it seems like pressing enter always submits a form request. I believe the expected behavior is only when there is one input in a form. But the main issue is just that it submits for textarea inputs instead of allowing the user to continue typing which is the expected behavior of a textarea.
Based on the spec:
So the textarea issue is definitely a bug. The input issue is not, if your form has a submit button.
I'm going to remove the unnecessary
keyupevent listener, and let the browser make the decision when to submit the form.