Fix warning about isMounted being deprecated

This commit is contained in:
Aesop Wolf 2017-06-17 19:30:05 -07:00
parent 7dc68fc633
commit ebd84bb026
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "formsy-react",
"version": "0.19.4",
"version": "0.19.5",
"description": "A form input builder and validator for React JS",
"repository": {
"type": "git",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -394,7 +394,7 @@ Formsy.Form = createReactClass({
// If there are no inputs, set state where form is ready to trigger
// change event. New inputs might be added later
if (!this.inputs.length && this.isMounted()) {
if (!this.inputs.length) {
this.setState({
canChange: true
});