-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formFields not being respected on Authenticator signIn page #5964
Comments
@jburn7 using the provided code I'm having a hard time producing this bug. I've created a working reproduction https://codesandbox.io/p/sandbox/hungry-leakey-wq9q2f can you provide additional details or a minimal reproduction of the bug? |
@jburn7 Can you share your amplify_outputs file with any sensitive values redacted? |
@reesscot I actually don't see the amplify_outputs anywhere. Should it be there by default or do I need to generate it somehow? |
@jburn7 OK, you must be using gen2 then. Can you please share your |
@reesscot I don't seem to have the |
@jburn7, thanks for the follow up here. It may be a Gen 1 app where you provisioned your resources via the Amplify CLI then? And either way, can you share your |
@cwomack Yes we did indeed configure the resources via the CLI
|
@jburn7, we're not able to reproduce this on our side using the sample code you've provided. Are you able to provide a minimal sample repo where this is happening? Or if not a full sample repo, can you provide more of the frontend code? Thanks! |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
No response
Please describe your bug.
Passing
formfields
to<Authenticator/>
does not respect the value within those form field customizations, e.g. the defaultValue or placeholder for the signIn username fieldWhat's the expected behaviour?
<Authenticator/>
should use the customized values that are passed via formFieldsHelp us reproduce the bug!
Using the example directly from the docs: https://ui.docs.amplify.aws/react/connected-components/authenticator/customization#updating-labels-placeholders-required-fields-and-showing-labels
On that page, the example shows the username field with the correct label and placeholder of "Email" and "Enter Your Email Here" respectively.
In my application with the same code, I see the following:
Note that the color customization defined in my index.css does appear to be working
Code Snippet
Console log output
No response
Additional information and screenshots
The text was updated successfully, but these errors were encountered: