mobx-input
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -57,5 +57,5 @@ "use strict"; | ||
var _a = this.props, name = _a.name, model = _a.model; | ||
// Add current field to observable model | ||
if (model[name] === undefined) | ||
mobx_1.extendObservable(model, (_b = {}, _b[name] = undefined, _b)); | ||
// Add current field to observable model (if not already observable, prefill unobservable value) | ||
if (model.$mobx.values[name] === undefined) | ||
mobx_1.extendObservable(model, (_b = {}, _b[name] = model[name], _b)); | ||
// Create internal form data field | ||
@@ -62,0 +62,0 @@ if (!model.$mobxInputForm) { |
{ | ||
"name": "mobx-input", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Form library for MobX, with observable state and validations", | ||
@@ -5,0 +5,0 @@ "main": "lib/mobx-input.js", |
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
19099