-
-
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
[RFR] FileInput - Display validation errors #2660
Conversation
Also fixed warnings from Labeled
c9017a3
to
72743f5
Compare
@@ -70,7 +70,7 @@ const PostEdit = props => ( | |||
{ id: 42, name: 'Sean Phonee' }, | |||
]} | |||
/> | |||
<ImageInput multiple source="pictures" accept="image/*" validate={required()}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand that change. How are you supposed to test it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I added it to test manually in the first place but ok, I'll write tests for it 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no no no, it will get really tedious if the form doesn't accept posts without files. It's ok like that.
Also fixed warnings from Labeled
Fixes #825