Comparing version 3.0.0-rc.7 to 3.0.0-rc.8
@@ -134,10 +134,10 @@ "use strict"; | ||
} | ||
if (this.props.autosaveDelay > 0) { | ||
this.delayId = setTimeout(function () { | ||
// Delay autosave by `autosaveDelay` milliseconds... | ||
this.delayId = setTimeout(function () { | ||
// ...and wait for all scheduled `setState`s to commit. This is required | ||
// for AutoForm to validate correct model, waiting in `onChange`. | ||
_this.setState(function () { return null; }, function () { | ||
_this.onSubmit(); | ||
}, this.props.autosaveDelay); | ||
} | ||
else { | ||
this.onSubmit(); | ||
} | ||
}); | ||
}, this.props.autosaveDelay); | ||
} | ||
@@ -144,0 +144,0 @@ }; |
@@ -122,10 +122,10 @@ import clone from 'lodash/clone'; | ||
} | ||
if (this.props.autosaveDelay > 0) { | ||
this.delayId = setTimeout(() => { | ||
// Delay autosave by `autosaveDelay` milliseconds... | ||
this.delayId = setTimeout(() => { | ||
// ...and wait for all scheduled `setState`s to commit. This is required | ||
// for AutoForm to validate correct model, waiting in `onChange`. | ||
this.setState(() => null, () => { | ||
this.onSubmit(); | ||
}, this.props.autosaveDelay); | ||
} | ||
else { | ||
this.onSubmit(); | ||
} | ||
}); | ||
}, this.props.autosaveDelay); | ||
} | ||
@@ -132,0 +132,0 @@ } |
{ | ||
"name": "uniforms", | ||
"version": "3.0.0-rc.7", | ||
"version": "3.0.0-rc.8", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "main": "es5/index.js", | ||
}, | ||
"gitHead": "27681eb8621469b6ecd15d11ca7acbfee665feab" | ||
"gitHead": "218bdd0f64c660d1ddfb22d45ff3916e03c5a31e" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192937
4401