Skip to content

Commit

Permalink
feat: allow helperText when there is no error
Browse files Browse the repository at this point in the history
closes Deadly0#22
  • Loading branch information
alirezamirian authored Aug 23, 2019
1 parent 555cb24 commit 18c1c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const TextFieldWrapper: React.SFC<FieldRenderProps> = ({input: {name, onChange,
<TextField
{...rest}
name={name}
helperText={showError ? meta.error || meta.submitError : undefined}
helperText={showError ? meta.error || meta.submitError : rest.helperText}
error={showError}
inputProps={restInput}
onChange={onChange}
Expand Down

0 comments on commit 18c1c49

Please sign in to comment.