Comparing version 0.7.0 to 0.7.1
@@ -92,23 +92,8 @@ 'use strict'; | ||
var fieldsKeys = Object.keys(fields); | ||
var changedFields = {}; | ||
fieldsKeys.forEach(function (s) { | ||
if (!fieldsMeta[s]) { | ||
delete fields[s]; | ||
changedFields[s] = undefined; | ||
} | ||
}); | ||
if (onFieldsChange) { | ||
Object.keys(fieldsMeta).forEach(function (name) { | ||
var fieldMeta = fieldsMeta[name]; | ||
var field = fields[name] || {}; | ||
if ('initialValue' in fieldMeta && !('value' in field)) { | ||
changedFields[name] = { | ||
value: fieldMeta.initialValue | ||
}; | ||
} | ||
}); | ||
if (!(0, _utils.isEmptyObject)(changedFields)) { | ||
onFieldsChange(this.props, changedFields); | ||
} | ||
} | ||
// do not notify store | ||
} | ||
@@ -115,0 +100,0 @@ }, { |
{ | ||
"name": "rc-form", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "React High Order Form Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
248705
4624