Bug when simply sending a form #1487
-
The simplest PoC of this bug is here -> http://quemfazsite.com.br/temp/teste.html Click inside the field "your name" and press ENTER on your keyboard. According to the documentation at "https://semantic-ui.com/behaviors/form.html" when pressing enter the form should submit and "Submit events will be attached to click on any element inside the form with class submit". In the form on the link I posted above, there are 2 buttons: the red one is a normal button and the blue one is the one that HAS the However, if I change the order of those 2 buttons, it triggers the BLUE one when trying to send the form using ENTER. So clearly there is a but cause when the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@batata004 the red button is also a submit button by default if you do not declare via |
Beta Was this translation helpful? Give feedback.
-
You are damm right! I just double checked the documentation and every button, by default, is always a submit! Thanks! |
Beta Was this translation helpful? Give feedback.
@batata004 the red button is also a submit button by default if you do not declare via
type="button"
ortype="reset"
.