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
function handleError(){
if(reverse_auto.length === Object.keys(props.values.columns).length){
if(sum(Object.values(props.values.columns)) > props.values.total_width){
props.setFieldError('exceed', "* total width of columns must not exceed Total width");
}
if(sum(Object.values(props.values.columns)) < props.values.total_width){
props.setFieldError('less', "* total width of columns must not be less than Total width");
}
}
}
Bug report
Current Behavior
Expected behavior
Reproducible example
Suggested solution(s)
Additional context
Your environment
Software
Version(s)
Formik
React
TypeScript
Browser
npm/Yarn
Operating System
The text was updated successfully, but these errors were encountered:
setFieldError not working
Bug report
Current Behavior
Expected behavior
Reproducible example
Suggested solution(s)
Additional context
Your environment
The text was updated successfully, but these errors were encountered: