Skip to content
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

Merged
merged 3 commits into from
Dec 13, 2018
Merged

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Dec 13, 2018

Also fixed warnings from Labeled

selection_142

Fixes #825

@djhi djhi added this to the 2.5.2 milestone Dec 13, 2018
@djhi djhi requested a review from fzaninotto December 13, 2018 15:20
@djhi djhi changed the title [RFR] FileInput - Display validation errors [WIP] FileInput - Display validation errors Dec 13, 2018
Also fixed warnings from Labeled
@djhi djhi force-pushed the file-input-validation branch from c9017a3 to 72743f5 Compare December 13, 2018 15:33
@djhi djhi changed the title [WIP] FileInput - Display validation errors [RFR] FileInput - Display validation errors Dec 13, 2018
@@ -70,7 +70,7 @@ const PostEdit = props => (
{ id: 42, name: 'Sean Phonee' },
]}
/>
<ImageInput multiple source="pictures" accept="image/*" validate={required()}>
Copy link
Member

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?

Copy link
Collaborator Author

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 😢

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FileInput does not display error on validation error
2 participants