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
I ran into a scenario where there are no actual form errors, and the form can be submitted, but to the user it looks like the input is invalid. It has a red border and red error icon, indicating that it is invalid, even though it is not actually invalid.
Prerequisites
Description
I ran into a scenario where there are no actual form errors, and the form can be submitted, but to the user it looks like the input is invalid. It has a red border and red error icon, indicating that it is invalid, even though it is not actually invalid.
Steps to Reproduce
Here is sandbox: https://stackblitz.com/edit/react-1dcgru?file=src%2FApp.js
@rjsf/antd
with an object schema with a string property. Example:
and a
extraErrors
prop with an empty array of errors. Example:Expected behavior
When the errors are
[]
, it should understand that there are no errors.Actual behavior
The antd design input showed validation errors.
![Validation error screenshot](https://user-images.githubusercontent.com/52586855/135724135-dc328084-1644-4c6e-9cf0-bd39a3c5f2a1.png)
Version
The text was updated successfully, but these errors were encountered: