button
element by default has "submit" type (except in IE), so if you have <button></button>
inside your form
then that's the button that will be triggered on enter
.
Explicitly set the type to "button" if you want to skip that button on enter
.
// Will not trigger form submit
<button type="button">Click me</button>
// *Will* trigger form submit
<button>Submit</button>
// or
<button type="submit">Submit</button>