Skip to content

Commit

Permalink
Merge pull request #101 from guillaumevincent/patch-1
Browse files Browse the repository at this point in the history
Fix isValidValue call in documentation. Closes #99.
  • Loading branch information
twisty authored Jun 28, 2018
2 parents 95dd051 + e875c58 commit 9f6675f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ You can pre-verify a value against the passed validators to the form element.
```jsx
class MyInput extends React.Component {
changeValue = (event) => {
if (this.isValidValue(event.target.value)) {
if (this.props.isValidValue(event.target.value)) {
this.props.setValue(event.target.value);
}
}
Expand Down

0 comments on commit 9f6675f

Please sign in to comment.