Skip to content

Commit

Permalink
Add precision in the rule description
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao committed Oct 7, 2021
1 parent b5c8db8 commit 37683f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rule/no-action-on-submit-button.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# no-action-on-submit-button

This rule requires all `<button>` elements with a `type="submit"` attribute to not have any action.
This rule requires all `<button>` elements with a `type="submit"` attribute to not have any click action.

When the `type` attribute of `<button>` elements is `submit`, the action should be on the `<form>` element instead of directly on the button.

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-action-on-submit-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Rule = require('./_base');

const ERROR_MESSAGE = 'A `<button>` with `type="submit"` should have no action';
const ERROR_MESSAGE = 'A `<button>` with `type="submit"` should have no click action';

module.exports = class NoActionOnSubmitButton extends Rule {
logNode({ node, message }) {
Expand Down

0 comments on commit 37683f8

Please sign in to comment.