Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Fixed error when using chrome autofill #1578

Merged
merged 3 commits into from
Oct 14, 2020

Conversation

bhavathi
Copy link
Contributor

@bhavathi bhavathi commented Aug 5, 2020

Description

Fixed error when using chrome autofill

Uncaught TypeError: event.getModifierState is not a function

When using native autofill feature in Chrome, keydown event is raised but event object is missing getModifierState function and causes this error.

Added an additional check before calling getModifierState.

@ghost ghost added the cla-needed label Aug 11, 2020
@bhavathi
Copy link
Contributor Author

@lemonmade I am not finding option to add reviewers.. can you please review this PR

@lemonmade
Copy link
Member

cc/ @Shopify/web-foundations for review

Copy link
Member

@gmcgibbon gmcgibbon left a comment

Choose a reason for hiding this comment

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

Our typing assumptions on the keydown event appear to be wrong, but this check is needed regardless, so 👍

Please add a changelog and a test to make sure we don't regress. You also need to sign our CLA before we can accept this change (see CLA check). Thanks!

@bhavathi bhavathi force-pushed the chrome-autfil-fix branch 3 times, most recently from 979495d to ce770b4 Compare October 7, 2020 15:44
@bhavathi bhavathi force-pushed the chrome-autfil-fix branch 2 times, most recently from ce770b4 to 7ea896e Compare October 14, 2020 11:05
@ghost ghost removed the cla-needed label Oct 14, 2020
Copy link
Member

@gmcgibbon gmcgibbon left a comment

Choose a reason for hiding this comment

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

Thanks!

@gmcgibbon gmcgibbon merged commit 55a08a4 into Shopify:master Oct 14, 2020
gmcgibbon added a commit that referenced this pull request Oct 14, 2020
@alexandcote alexandcote temporarily deployed to production October 22, 2020 15:57 Inactive
@marutypes marutypes temporarily deployed to gem February 8, 2021 15:51 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants