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
Currently, although validation errors (mostly server side ones) can be a list, and is properly handled by the getErrorMessages() method of the element, such list is never used to produce the error text, but instead the single message one is used (getErrorMessage()).
Since material UI accepts any element as the errorText property, it would be nice to use the error list rather than a single message, and just render each error one below the other.
Currently, although validation errors (mostly server side ones) can be a list, and is properly handled by the getErrorMessages() method of the element, such list is never used to produce the error text, but instead the single message one is used (getErrorMessage()).
Since material UI accepts any element as the errorText property, it would be nice to use the error list rather than a single message, and just render each error one below the other.
Example:
This line calls the single error message method, but it could use the list one and set to errorText a list of spans or something
https://github.com/rojobuffalo/formsy-material-ui/blob/master/src/FormsyText.jsx#L139
The text was updated successfully, but these errors were encountered: