Adding Input Adornment to TextField

This commit is contained in:
apanizo 2018-10-02 16:43:14 +02:00
parent af0930a02f
commit 4c0fbccd83
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ class TextField extends React.PureComponent<TextFieldProps> {
meta,
render,
text,
inputAdornment,
classes,
...rest
} = this.props
@ -36,7 +37,7 @@ class TextField extends React.PureComponent<TextFieldProps> {
const inputRoot = helperText ? classes.root : undefined
const inputProps = { ...restInput, autoComplete: 'off' }
const inputRootProps = { disableUnderline: !underline, className: inputRoot }
const inputRootProps = { ...inputAdornment, disableUnderline: !underline, className: inputRoot }
return (
<MuiTextField