html
html copied to clipboard
Warn users 'button' will submit the form by default
By default Html.button is an input of type 'submit'.
This may be yield surprising results when using the
onClick attribute on a button, effectively firing two
events (one for the click and another one for the
form submit).
This commit adds a word of caution in the button
element documentation to warn users of this
behavior and how to prevent it.