Skip to content

No longer autocorrecting the email field (Safari only) (LG-3842)#4845

Merged
solipet merged 2 commits intomainfrom
dprice-lg-3842-disable-autocorrect
Mar 26, 2021
Merged

No longer autocorrecting the email field (Safari only) (LG-3842)#4845
solipet merged 2 commits intomainfrom
dprice-lg-3842-disable-autocorrect

Conversation

@solipet
Copy link
Contributor

@solipet solipet commented Mar 26, 2021

Previously, if a user navigated to secure.login.gov in Safari, and typed in jane.doe@gsa.gov the field would autocorrect to Jane.doe@gsa.gov. This PR preevents that on the sign in page, the create account page, and the forgot password page.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

<%= f.input :email, required: true, input_html: { aria: { invalid: false, describedby: 'email-description' } } %>
<%= f.input :email,
required: true,
input_html: { autocorrect: 'off',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a regression check for this in spec/views/devise/passwords/new.html.erb_spec.rb to make sure we don't accidentally remove it in the future?

@solipet solipet force-pushed the dprice-lg-3842-disable-autocorrect branch from 3d339db to 598caf7 Compare March 26, 2021 19:50
@solipet solipet merged commit 376e0ac into main Mar 26, 2021
@solipet solipet deleted the dprice-lg-3842-disable-autocorrect branch March 26, 2021 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants