Amplify UI - Angular - amplify-authenticator doesn't fire (handleSubmit) Event
See original GitHub issueDescribe 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:
- @aws-amplify/core@^2.2.4
- @aws-amplify/ui-angular@0.2.3-unstable.21
- @aws-amplify/ui-components@0.3.3-unstable.21
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @pechisworks,
Since
handleSubmit
is aprop
and not anevent
the code should be:Let me know if that works!
Also, keep in mind that overriding the
handleSubmit
will override the internalsignUp
orsignIn
functionThis 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.