-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low priority validation causing problems #1560
Comments
I am facing this issue as well. @jaredpalmer Is there an ETA on this? |
The current workaround is to call Note, it's necessary to call it with the same values otherwise it will see previous ones. |
I really wish I never added validation as a side effect of the setXXX methods. The current workaround as @FredyC would be to avoid validation on setValues and trigger it imperatively. @FredyC what would the ideal API look like? Do we need to expose |
I've messaged some React team members about this and will report back with a suggested solution. |
@jaredpalmer I think I've found the culprit... Line 463 in 3c86588
You are using Btw, |
@FredyC that makes sense. |
perhaps only handleChange and handleBlur should be low-priority. |
Well, I don't think it's a problem to have low priority here, it just needs to validate against new data. |
Anyone working on this? I could give it a shot if you don't mind. |
Encountered same issue with version: 2.0.1-rc.13 |
🐛 Bug report
Current Behavior
Basically, when values are modified with
setValues
, it won't trigger the validation and causes inconsistent outcome - validation errors are still shown despite valid values entered.Expected behavior
Setting values imperatively should probably be a high priority validation.
Reproducible example
https://codesandbox.io/s/zen-hoover-p66mv
Downgrading to RC-1 fixes it.
The text was updated successfully, but these errors were encountered: