Don’t spellcheck email addresses

The GOV.UK Design System recommends:
> setting the spellcheck attribute to false so that browsers do not
> spellcheck the email address
This commit is contained in:
Chris Hill-Scott
2019-07-16 08:59:17 +01:00
parent 42300371b0
commit 88242c31d1
2 changed files with 2 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ def email_address(label='Email address', gov_user=True, required=True):
if required:
validators.append(DataRequired(message='Cant be empty'))
return EmailField(label, validators)
return EmailField(label, validators, render_kw={'spellcheck': 'false'})
class UKMobileNumber(TelField):