Skip to content

Commit 7eb6ca9

Browse files
hamirmahalljharb
authored andcommitted
[Docs] button-has-type: clean up phrasing
1 parent e6b5b41 commit 7eb6ca9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
77

88
## Unreleased
99

10+
### Changed
11+
* [Docs] [`button-has-type`]: clean up phrasing ([#3909][] @hamirmahal)
12+
13+
[#3909]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3909
14+
1015
## [7.37.4] - 2025.01.12
1116

1217
### Fixed

docs/rules/button-has-type.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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"`. This is often not the desired behavior and may lead to unexpected page reloads.
6+
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"`).
77

88
## Rule Details
99

0 commit comments

Comments
 (0)