> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# a11y-button-missing-type

> A button associated with a form has a click handler but no explicit type, so clicking it can also submit the form.

## 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:

```json theme={null}
{
  "rules": { "a11y-button-missing-type": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.