-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display validation errors for <ImageInput> #1611
Comments
Fixed by #2660 |
What about the |
For File and ImageInput, there is already a minSize and a maxSize property, see https://marmelab.com/react-admin/Inputs.html#imageinput |
I’m aware of those two properties. But it does not display any error or messages after the file was rejected, at least not by default. |
Can you please open a new issue then? don't forget to include a link to a CodeSandbox reproducing the problem (the simple CodeSandbox already has a FileInput in the CreatePost page). |
Duplicate of #6441 |
What you were expecting:
ImageInput to display validation errors eg. "Required" as per the other input fields.
What happened instead:
No validation error messages displayed.
Steps to reproduce:
Use the ImageInput component in a create or edit form, either with a validation function or
maxSize
property. Submit the form. The form is not submitted but not validation errors are displayed.Related code:
Environment
The text was updated successfully, but these errors were encountered: