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>
{/*
We use this approach to trigger validation for all invalid inputs upon submission.
To handle this programmatically in the future, we would need some major refactoring
of the Input component, which is out of scope for now.
This is a manual validation trigger workaround:
- The Controller component (which Input uses) doesn't re-render on submit,
which prevents automatic error display.
- Future fix requires Input component refactoring (out of scope for now).
*/}
{!methods.formState.isValid ? (
<Button