Skip to content

Commit

Permalink
fga-eps-mds#166 - MINOR: Fixing validation parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusoliveira30 committed Apr 12, 2018
1 parent a4b869a commit 7237ab6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/GenericField.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ export default class GenericField extends Component {
}

handleInput(newText) {
// const regexTest = /\w+/g;
console.warn('handleInput', newText);

this.setState({
text: newText.trim(),
},
// Callback from setState
() => { this.verificaTexto(newText, this.props.validorRegex); },
() => { this.verificaTexto(this.state.text, this.props.validorRegex); },
);
}

Expand Down

0 comments on commit 7237ab6

Please sign in to comment.