Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
franleplant committed Oct 9, 2016
1 parent 02243a7 commit 3575738
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,10 @@ class Login extends Component {
handleFieldChange(fieldName, control, event) {
this.setState(state => {
state.fields[fieldName] = control.value;

// Note that we are updating the fields errors as the user types, so that means that we
// are display error information in real time, that might not be what you want and `Reform`
// does not care about it.
state.errors[fieldName] = control.errors;
return state
})
Expand Down

0 comments on commit 3575738

Please sign in to comment.