diff --git a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/SignUpForm.tsx b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/SignUpForm.tsx index 0c0813fbd..7c7ba40f0 100644 --- a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/SignUpForm.tsx +++ b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/SignUpForm.tsx @@ -103,7 +103,10 @@ const SignUpForm = () => { // Note: we need to revalidate the sign-in methods after we have submitted if (submitCount) { - void trigger('signIn.methods'); + // Note: wait for the form to be updated before validating the new data. + setTimeout(() => { + void trigger('signIn.methods'); + }, 0); } }; diff --git a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/components/SignInMethodEditBox/index.tsx b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/components/SignInMethodEditBox/index.tsx index 1b77c4ef9..b41bfb8cc 100644 --- a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/components/SignInMethodEditBox/index.tsx +++ b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignIn/components/SignInMethodEditBox/index.tsx @@ -35,7 +35,10 @@ const SignInMethodEditBox = () => { const revalidate = () => { if (submitCount) { - void trigger(`signIn.methods`); + // Note: wait for the form to be updated before validating the new data. + setTimeout(() => { + void trigger('signIn.methods'); + }, 0); } };