# noDisabledAttribute

Rule `biome/noDisabledAttribute`. Discourages the `disabled` attribute on form controls and on elements that act as buttons.

- Source: biome
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1905 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noDisabledAttribute` | no | unsafe | group nursery, since 2.6.7 | [docs](https://biomejs.dev/linter/rules/no-disabled-attribute/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<button disabled>Save</button>
```

```jsx
<input type="email" disabled />
```

```jsx
<select disabled><option>Monthly</option></select>
```

### Correct: the rule accepts this

```jsx
<>
    <button aria-disabled="true">Save</button>
    <input type="email" readOnly />
    <select aria-disabled="true"><option>Monthly</option></select>
    <input type="hidden" disabled />
</>
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noDisabledAttribute": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noConvexWrongRuntimeImports](https://lintradar.dev/rules/biome/noConvexWrongRuntimeImports.md): Disallow importing Node.js runtime files from Convex runtime files.
- [biome/noDrizzleDbObjectInsideTransaction](https://lintradar.dev/rules/biome/noDrizzleDbObjectInsideTransaction.md): Disallow using a Drizzle ORM instance inside its own transaction callback.
- [biome/noConvexCollectInQuery](https://lintradar.dev/rules/biome/noConvexCollectInQuery.md): Disallow loading every result of a Convex database query with `.collect()`.
- [biome/noExcessiveSelectorClasses](https://lintradar.dev/rules/biome/noExcessiveSelectorClasses.md): Limit the number of classes in a selector.
- [biome/noBunModules](https://lintradar.dev/rules/biome/noBunModules.md): Forbid the use of Bun builtin modules.
- [biome/noExcessiveSelectorComplexity](https://lintradar.dev/rules/biome/noExcessiveSelectorComplexity.md): Limit how complex selectors can be, and disallow chosen parts of selectors.

---

Web page: https://lintradar.dev/rules/biome/noDisabledAttribute. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
