Skip to content
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

Email input fields do not set keyboard type #5952

Open
4 tasks done
tlvince opened this issue Oct 24, 2024 · 2 comments
Open
4 tasks done

Email input fields do not set keyboard type #5952

tlvince opened this issue Oct 24, 2024 · 2 comments
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature

Comments

@tlvince
Copy link

tlvince commented Oct 24, 2024

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

React Native

Which UI component?

Authenticator

How is your app built?

Expo

What browsers are you seeing the problem on?

iOS (React Native), Android (React Native)

Which region are you seeing the problem in?

No response

Please describe your bug.

Using the Authenticator components with the "email" login mechanism, the default keyboard type is used.

What's the expected behaviour?

I expected the corresponding email input field to use device's email keyboard type.

Help us reproduce the bug!

Use the email login mechanism

Code Snippet

<Authenticator.Provider>
  <Authenticator loginMechanisms={['email']}>
    <SignOutButton />
  </Authenticator>
</Authenticator.Provider>

Console log output

No response

Additional information and screenshots

For phone number fields, phone-pad keyboard is used. Perhaps a new primitive for email is needed?

One workaround:

<Authenticator
  loginMechanisms={["email"]}
  components={{
    SignIn: ({ fields, ...props }) => {
      return (
        <Authenticator.SignIn
          {...props}
          fields={fields.map((field) => ({
            ...field,
            ...(field.type === "email" && {
              keyboardType: "email-address",
              autoCapitalize: "none",
            }),
          }))}
        />
      );
    },
  }}
/>
@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Oct 24, 2024
@jacoblogan
Copy link
Contributor

Thank you for reporting this issue, we will add this request to our feature roadmap

@jacoblogan jacoblogan added feature-request Request a new feature Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Oct 25, 2024
@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify UI maintainer label Nov 8, 2024
@hbuchel hbuchel removed the pending-maintainer-response Issue is pending response from an Amplify UI maintainer label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

4 participants
@tlvince @hbuchel @jacoblogan and others