You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can be worked around by providing our own AmplifyAuthFields but the AmplifySignIn component should work with password managers and native browser autofill by default.
Reproduction steps
Create an app with the AmplifySignIn component
When rendered to the browser, inspect the username or password inputs
Observe the input element doesn't have the autocomplete attribute set
Hey @srquinn21 The UI team is currently working towards refactoring the ui components away from using the shadow dom, which is the cause of this issue, in order to improve compatibility with things like password managers.
Hi! As @chrisbonifacio mentioned, we're working on rewriting our ui-components to allow variety of password managers. The main reason this can't be solved directly that browsers have trouble detecting form covered inside shadow DOM even when autofill properties are set.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
A react app using the
AmplifySignIn
component does not properly set theautocomplete
attribute on the username and password inputs. Native browser autofill and password managers do not recognize the inputs as a result and fail. See https://developers.google.com/web/fundamentals/design-and-ux/input/forms#recommended_input_name_and_autocomplete_attribute_values for appropriate values.Expected behavior
Can be worked around by providing our own
AmplifyAuthFields
but theAmplifySignIn
component should work with password managers and native browser autofill by default.Reproduction steps
AmplifySignIn
componentautocomplete
attribute setCode Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: