Skip to content

Commit f8b6672

Browse files
authored
docs: update react/button-has-type
1 parent e6b5b41 commit f8b6672

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/rules/button-has-type.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
<!-- end auto-generated rule header -->
44

5-
The default value of `type` attribute for `button` HTML element is `"submit"` which is often not the desired behavior and may lead to unexpected page reloads.
6-
This rules enforces an explicit `type` attribute for all the `button` elements and checks that its value is valid per spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`).
5+
The default value of the `type` attribute for HTML `button` elements is `"submit"`.
6+
This is often not the desired behavior and may lead to unexpected page reloads.
7+
This rules enforces an explicit `type` attribute for all `button` elements and checks that its value is valid per the spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`).
78

89
## Rule Details
910

0 commit comments

Comments
 (0)