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
dateRange.when() conditional validations throw errors after upgrading yup to v0.32.11 and availity/yup to v4.0.0
see for example this partial schema that worked with availity/yup v3.1.1 and yup v0.29.3
will now throw an error that looks like
which I believe is due to this.format being undefined in the conditional validation so that getValidDate fails
as seen here
Expected behavior
This example test added to dateRange.test.js should pass and we should be able to continue validating dateRanges conditionally
Reproducible example
See test above
Suggested solution(s)
Working on it
Additional context
I already pinged Chris and Jordan about this and I have a bit of time to look into this more today and tomorrow so will update this issue if I find out anything useful.
Your environment
The text was updated successfully, but these errors were encountered:
🐛 Bug report
Current Behavior
dateRange.when() conditional validations throw errors after upgrading yup to v0.32.11 and availity/yup to v4.0.0
see for example this partial schema that worked with availity/yup v3.1.1 and yup v0.29.3
will now throw an error that looks like
which I believe is due to this.format being undefined in the conditional validation so that getValidDate fails
as seen here
Expected behavior
This example test added to dateRange.test.js should pass and we should be able to continue validating dateRanges conditionally
Reproducible example
See test above
Suggested solution(s)
Working on it
Additional context
I already pinged Chris and Jordan about this and I have a bit of time to look into this more today and tomorrow so will update this issue if I find out anything useful.
Your environment
The text was updated successfully, but these errors were encountered: