GitHub

Paste Inputs

Detects form inputs that prevent pasting

Detects form inputs that prevent pasting

Rule IDa11y/paste-inputs
CategoryAccessibility
ScopePer-page
Severitywarning
Weight4/10

Solution

Remove any JavaScript that prevents pasting in form inputs. Blocking paste forces users to manually type passwords, email addresses, or other data, which increases errors and frustrates users with password managers. Users with motor impairments may rely on paste functionality. Remove onpaste=‘return false’, event.preventDefault() on paste events, and similar anti-paste code.

Enable / Disable

Disable this rule

squirrel.toml
toml
[rules]
disable = ["a11y/paste-inputs"]

Disable all Accessibility rules

squirrel.toml
toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
toml
[rules]
enable = ["a11y/paste-inputs"]
disable = ["*"]

Type to search…

↑↓ navigate ↵ open esc close