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
If you have multiple forms instantiated, custom DVR rules registered, and if you pass in form instance to the rules, once validation kicks in, rules will receive invalid form instance. E.g. they will receive the instance of form that was last instantitated.
This is related to validatorjs. When you register new rules you are actually overriding the rule using the second form instance. I dont't know if this can be fixed due to the validatorjs lib limitation.
If you have multiple forms instantiated, custom DVR rules registered, and if you pass in form instance to the rules, once validation kicks in, rules will receive invalid form instance. E.g. they will receive the instance of form that was last instantitated.
Reproduction: https://stackblitz.com/edit/react-ybjhpf
See rules.js and inspect "form" property values.
The text was updated successfully, but these errors were encountered: