question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Amplify UI - Angular - amplify-authenticator doesn't fire (handleSubmit) Event

See original GitHub issue

Describe the bug On the new amplify-authenticator component I am trying to hook in the handleSubmit Event for adding additional validationData. But it doesn’t get fired, neither on the amplify-sign-up or the amplify-sign-in component. I’ve also tried it with the newest unstable version.

To Reproduce

<amplify-authenticator>
   <amplify-sign-up  slot="sign-up" (handleSubmit)="handleSignUpSubmit($event)">
   </amplify-sign-up>

   <amplify-sign-in slot="sign-in" (handleSubmit)="handleSignInSubmit($event)">
   </amplify-sign-in>
</amplify-authenticator>

In my Typescript-File:

handleSignUpSubmit(event: any) {
  console.log('HANDLE SUBMIT!', event);
}
handleSignInSubmit(event: any) {
  console.log('HANDLE SUBMIT!', event);
}

Expected behavior handleSubmit Event should get fired.

Packages:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jordanranzcommented, Apr 23, 2020

Hey @pechisworks,

Since handleSubmit is a prop and not an event the code should be:

<amplify-authenticator>
   <amplify-sign-up  slot="sign-up" [handleSubmit]="handleSignUpSubmit">
   </amplify-sign-up>

   <amplify-sign-in slot="sign-in" [handleSubmit]="handleSignInSubmit">
   </amplify-sign-in>
</amplify-authenticator>

Let me know if that works!

Also, keep in mind that overriding the handleSubmit will override the internal signUp or signIn function

0reactions
github-actions[bot]commented, Aug 27, 2022

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

XState & Amplify | by Eric Clemmons - Medium
Today, customers can ` useAuthenticator()` and get access to a wrapper around our state machine. Finally, testing the machine's transitions aren't enough when ......
Read more >
Complete Guide to AWS Amplify and React Native
Hello! & Welcome to this complete guide on AWS Amplify and React Native. In this tutorial, we will build a simple e-commerce app....
Read more >
how to add routing to angular signup/signIn components using ...
So, I'm using the aws Amplify for authentication and authorization, and I'm following their guide…
Read more >
Build a React App with Authorization and Authentication
Back in your code's directory, run Amplify pull with your app id -- you can find this command under "local setup instructions" in...
Read more >
How to use AWS Amplify React components for an ... - YouTube
90 minutes of coding up an AWS Amplify's new components. AWS Amplify UI is a collection of accessible, themeable, performant React (and more ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found