jquense / yup

Dead simple Object schema validation
MIT License
22.85k stars 932 forks source link

createError does not disappear when test returns true. #1975

Closed zfreiter closed 1 year ago

zfreiter commented 1 year ago

I created a new createError in a test and it works to display a new error. The problem is that the error does not disappear when the test for yup returns true. Do I need to add something when it returns true to clear the error from the form? Below is my codesandbox. I'm using yup validation with react-hook-form.

https://codesandbox.io/s/quizzical-knuth-p229bv?file=/src/App.js

jquense commented 1 year ago

Error displaying is done by react hook form not yup. I'd ask for help on their repo