Skip to content

Commit

Permalink
Merge pull request mui#1896 from chrismcv/text-field-fix
Browse files Browse the repository at this point in the history
[TextField] Fix children style
  • Loading branch information
oliviertassinari committed Oct 27, 2015
2 parents efbbb15 + d311e64 commit 26fef66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/text-field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ const TextField = React.createClass({
inputProps.onChange = this._handleInputChange;
}
if (this.props.children) {
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props});
let childInputStyle = this.mergeStyles(inputStyle, this.props.children.style);
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props, style:childInputStyle});
}
else {
inputElement = multiLine ? (
Expand Down

0 comments on commit 26fef66

Please sign in to comment.