Skip to content

Commit c0ad3ce

Browse files
committed
Added note about why to use type="button”
1 parent 3aa6877 commit c0ad3ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

partials/section.forms.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@
421421

422422
<h4>Notes:</h4>
423423
<ul>
424+
<li>
425+
<small>Add <code>type="button"</code> to <code>button</code> elements placed outside of forms to prevent some browsers from attempting to submit form data.</small>
426+
</li>
424427
<li>
425428
<small>Add <code>pointer-events: none;</code> to <a rel="external noopener" href="https://twitter.com/stowball/status/857707052545613824">inline SVG icons placed in buttons</a>.</small>
426429
</li>

0 commit comments

Comments
 (0)