Skip to content

Commit d311e64

Browse files
committed
text field style fix
1 parent 1e0a4a5 commit d311e64

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
@@ -331,7 +331,8 @@ const TextField = React.createClass({
331331
inputProps.onChange = this._handleInputChange;
332332
}
333333
if (this.props.children) {
334-
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props});
334+
let childInputStyle = this.mergeStyles(inputStyle, this.props.children.style);
335+
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props, style:childInputStyle});
335336
}
336337
else {
337338
inputElement = multiLine ? (

0 commit comments

Comments
 (0)