Skip to content

Commit

Permalink
Pass ...restProps to TextFieldHelper root element
Browse files Browse the repository at this point in the history
  • Loading branch information
avocadowastaken committed Jun 20, 2016
1 parent 90c3e08 commit ec4ad8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TextField/TextFieldHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ const TextFieldHelperText = (props) => {
style,
helperText,
errorText,
...restProps,
} = props;

const styles = getStyles(props);

return (
<div style={prepareStyles(Object.assign(styles.root, style))}>
<div style={prepareStyles(Object.assign(styles.root, style))} {...restProps}>
{errorText || helperText}
</div>
);
Expand Down

0 comments on commit ec4ad8c

Please sign in to comment.