Skip to content

Commit 26fef66

Browse files
Merge pull request mui#1896 from chrismcv/text-field-fix
[TextField] Fix children style
2 parents efbbb15 + d311e64 commit 26fef66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/text-field.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ const TextField = React.createClass({
332332
inputProps.onChange = this._handleInputChange;
333333
}
334334
if (this.props.children) {
335-
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props});
335+
let childInputStyle = this.mergeStyles(inputStyle, this.props.children.style);
336+
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props, style:childInputStyle});
336337
}
337338
else {
338339
inputElement = multiLine ? (

0 commit comments

Comments
 (0)