Rendering 0
for fields when there are no errors after adding a custom validator
#3233
Closed
4 tasks done
Labels
Prerequisites
What theme are you using?
antd
Version
5.x
Current Behavior
After adding a custom validator, there will render a
0
error message when there are no errors.Expected Behavior
No error messages or otherwise being rendered when there are no errors.
Steps To Reproduce
Just add a custom validator function and return the
props.errors
directly.This is a sample codesandbox.
https://codesandbox.io/s/condescending-field-616vmc
Need to input something to trigger validate.
Environment
Anything else?
Nothing.
The text was updated successfully, but these errors were encountered: