Skip to content

Commit

Permalink
Merge pull request #10 from vijayrawatsan/master
Browse files Browse the repository at this point in the history
Textfield initialization through this.refs.form.reset(model) fix.
  • Loading branch information
vijayrawatsan committed Oct 29, 2015
2 parents e3f2e50 + c36809c commit d11eb24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion formsy-material-ui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ let FormsyText = React.createClass({
<TextField
{...this.props}
onBlur={this.handleChange}
errorText={this.getErrorMessage()} />
errorText={this.getErrorMessage()}
value={this.getValue()} />
);
}
});
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ var FormsyText = React.createClass({
render: function render() {
return React.createElement(TextField, _extends({}, this.props, {
onBlur: this.handleChange,
errorText: this.getErrorMessage() }));
errorText: this.getErrorMessage(),
value: this.getValue() }));
}
});

Expand Down

0 comments on commit d11eb24

Please sign in to comment.