EN, Change language
English
UK-081

Copy and paste are not disabled in text inputs or textareas.

GOV.UK Design System · Every UK public sector website

Why it matters to users

Many people copy reference numbers or paste addresses rather than retype them, and some disabled people rely on it. Blocking it causes errors and frustration.

How to fix it

Remove the onpaste, oncopy and oncut handlers that block these actions on text inputs and textareas. Then scan again.

How we measure it

Inline paste or copy handlers that block the action. Handlers added by script are not visible to the scan. Partly measured: we measure what the public pages show of this rule; the rest needs a review.

Its official source

Related rules

Copy and paste allowed · UK-081 | xfix