DEV Community

Discussion on: How to Easily Customize The AWS Amplify Authentication UI

Collapse
 
georgebelanger profile image
George Belanger • Edited

Hey everyone, due to a recent change to the Amplify signIn function, you now have to pass the event into your super.signIn function on line 61-ish:

in customSignIn.js around line 61
onClick={() => super.signIn()} ---> onClick={(event) => super.signIn(event)}

or you will get this error: Uncaught (in promise) TypeError: Cannot read property 'preventDefault' of undefined .

Here is the changes they made: github.com/aws-amplify/amplify-js/...

Here is the article I used to figure out what was wrong: stackoverflow.com/questions/475077...