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>
|
</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
|
||||||
|
|||||||
Reference in New Issue
Block a user