Fix warning about isMounted being deprecated
This commit is contained in:
parent
7dc68fc633
commit
ebd84bb026
|
|
@ -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
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue