fix(SW-360): more context to how we handle triggers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user