final-form-material-ui icon indicating copy to clipboard operation
final-form-material-ui copied to clipboard

helperText is just for errors

Open dbonabhealth opened this issue 5 years ago • 1 comments

In TextField, there is this code: helperText={showError ? meta.error || meta.submitError : undefined} that basically ignores any initial value of helperText.

Is there any reason not to have the code like: helperText={showError ? meta.error || meta.submitError : rest.helperText} ...or something to that effect?

I apologize if I violated your guidelines for requesting a feature.

dbonabhealth avatar Aug 20 '19 04:08 dbonabhealth

IMO, we need to split this two things appart.

The component used is MuiFormHelperText and display error messages, then, the variant prop should be error right ? But if we use the helper text as a real helper, the variant error should not be used...

optyler avatar Oct 25 '19 14:10 optyler