WordPress / wordcamp.org

WordCamps are casual, locally-organized conferences covering everything related to WordPress.
https://wordcamp.org
126 stars 69 forks source link

WordCamp application form is submitted while pressing Enter Key #792

Open mbigul opened 1 year ago

mbigul commented 1 year ago

Describe the bug

We were filling out our WordCamp application. It got submitted unexpectedly while pressing Enter Key in If there are businesses already interested in sponsoring, list them here. field. Please check the following screencast for more details.

https://www.screencast.com/t/LpdwhomonY7Q

To reproduce

Steps to reproduce the behavior:

  1. Go to https://central.wordcamp.org/wordcamp-organizer-application/
  2. Scroll down to If there are businesses already interested in sponsoring, list them here field
  3. Press Enter Key
  4. Form will submit

Expected behavior

No form submission while pressing the enter key

Screenshots

https://www.screencast.com/t/LpdwhomonY7Q

WordCamp

https://central.wordcamp.org/wordcamp-organizer-application/

System (please complete the following information):

Security Issues

To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.

iandunn commented 1 year ago

If I'm not mistaken, the standard behavior for browsers is to always submits forms when enter is used inside a single-line text input field (<input type="text">). It's only in multi-line <textarea> fields that it doesn't.

Do you think there's a reason to deviate from the standard behavior here, or is there something about the form that makes it look like it's a multi-line field?