-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature request: Provide option to customise ErrorList HTML like ArrayFieldTemplate #488
Comments
That would be a great feature to have indeed. Anybody willing to work on that? |
I also had to workaround that by creating a FieldTemplate with a custom ErrorList would a |
I think we're talking about the general ErrorList, the one rendered at the top of the form, not the contextual field errors one, for which a field template works nicely. But yeah, having the ability to customize the top one would be good, and passing a custom ErrorList component as a form prop would probably work best. |
Yeah that's way too complicated, we should provide a simpler way. Who's willing to work on a PR? :) |
unless @elisechant wants to give a shot, i can try the form prop solution |
2 issues:
current workaround is to add global errors outside of form state, getting access to internal state by using a callback ref like
Ideally the library might export some methods that could be used in place of indirect updates to internal form state or provide an optional wrapper component that does a global error state. Hard coding works for me for now but its not ideal. |
New features * Add support for rows attribute of textarea widget. (#450) * #434 - Render empty array item fields when minItems is specified (#484) * Add a "has-danger" class to the form error list (#502) * Show description for boolean fields (#498) * Fix #488: Add a custom Form ErrorList prop. Bugfixes * Fix impossibility to use stateful ArrayFieldTeplate comp. (#519) * Centralized shouldComponentUpdate handling in SchemaField (#490)
Released in v0.44.0. |
Description
It would be good to be able to write custom HTML for ErrorList at src/components/ErrorList.js in the same way we can for ArrayFieldTemplate.
The text was updated successfully, but these errors were encountered: