fix(SW-360): more context to how we handle triggers

This commit is contained in:
Chuma McPhoy
2024-10-24 09:19:14 +02:00
parent 62eb5a9bb5
commit e25a974426

View File

@@ -173,9 +173,10 @@ export default function SignupForm({ link, subtitle, title }: SignUpFormProps) {
</section> </section>
{/* {/*
We use this approach to trigger validation for all invalid inputs upon submission. This is a manual validation trigger workaround:
To handle this programmatically in the future, we would need some major refactoring - The Controller component (which Input uses) doesn't re-render on submit,
of the Input component, which is out of scope for now. which prevents automatic error display.
- Future fix requires Input component refactoring (out of scope for now).
*/} */}
{!methods.formState.isValid ? ( {!methods.formState.isValid ? (
<Button <Button