mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
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:
@@ -121,7 +121,7 @@ def email_address(label='Email address', gov_user=True, required=True):
|
||||
if required:
|
||||
validators.append(DataRequired(message='Can’t be empty'))
|
||||
|
||||
return EmailField(label, validators)
|
||||
return EmailField(label, validators, render_kw={'spellcheck': 'false'})
|
||||
|
||||
|
||||
class UKMobileNumber(TelField):
|
||||
|
||||
Reference in New Issue
Block a user