Skip to content

Commit

Permalink
Merge pull request #21 from ericvaladas/email-input
Browse files Browse the repository at this point in the history
Don't set defaultValue with the state value. Closes #18
  • Loading branch information
ericvaladas authored Sep 7, 2016
2 parents b280f43 + 391cd25 commit 441b8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function(WrappedComponent) {
elementProps() {
const elementProps = Object.assign({
defaultChecked: this.props.value === this.props.initialValue,
defaultValue: this.props.value || this.state.value,
defaultValue: this.props.value || this.props.initialValue,
onChange: this.handleChange
}, this.props);

Expand Down

0 comments on commit 441b8aa

Please sign in to comment.