Skip to content

Commit

Permalink
Merge pull request #2664 from marmelab/fix-custom-input-doc
Browse files Browse the repository at this point in the history
[RFR] Fix custom material-ui input documentation
  • Loading branch information
Gildas Garcia committed Dec 14, 2018
2 parents 483a348 + 97e7add commit 27034dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1311,9 +1311,9 @@ import TextField from '@material-ui/core/TextField';
import { Field } from 'redux-form';
const renderTextField = ({ input, label, meta: { touched, error }, ...custom }) => (
<TextField
hintText={label}
floatingLabelText={label}
errorText={touched && error}
label={label}
error={!!(touched && error)}
helperText={touched && error}
{...input}
{...custom}
/>
Expand Down

0 comments on commit 27034dc

Please sign in to comment.