You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that it does not revalidate the field when I select the primary checkbox on the primary field, because I don't have an onChange validator set for the form. However, I don't want the validators firing on every onChange event.
In the primary form.Field I can do something like:
But this doesn't give me as much control over which fields I want to validate. Ideally onChangeListenTo: would also have a callback option where I could specify the validation cause or something similar?
The text was updated successfully, but these errors were encountered:
Modify the FieldApi class to support a callback option in onChangeListenTo, allowing more control over field validation. This change will enable users to specify the validation cause or perform custom validation logic when linked fields change.
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
I have a Zod schema like this:
I have attached it to a schema like this:
I am using that schema on a form like this:
On the
form.Field
for theemail$[{i}].value
i have this:The issue is that it does not revalidate the field when I select the primary checkbox on the primary field, because I don't have an
onChange
validator set for the form. However, I don't want the validators firing on everyonChange
event.In the primary
form.Field
I can do something like:But this doesn't give me as much control over which fields I want to validate. Ideally
onChangeListenTo:
would also have a callback option where I could specify the validation cause or something similar?The text was updated successfully, but these errors were encountered: