Skip to main content

What it flags

An intrinsic <button> inside a form or with a form attribute is reported when it has an explicit click handler (onClick or onclick) and no type. Its default submit behavior can run alongside the handler. The checker skips buttons with spread attributes or a static disabled attribute.

How to review or fix

Review whether it should submit (type="submit") or only run a click handler (type="button").

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: