@domonda/form
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.2.4](https://github.com/domonda/domonda-js/compare/@domonda/form@2.2.3...@domonda/form@2.2.4) (2019-11-30) | ||
### Bug Fixes | ||
* **FormField:** dont set (create path for) undefined values ([caff778](https://github.com/domonda/domonda-js/commit/caff7787947274e2816921bef17a56ad4dea93d8)) | ||
## [2.2.3](https://github.com/domonda/domonda-js/compare/@domonda/form@2.2.2...@domonda/form@2.2.3) (2019-11-21) | ||
@@ -8,0 +19,0 @@ |
@@ -69,3 +69,5 @@ "use strict"; | ||
var { changed, validityMessage } = _a, rest = __rest(_a, ["changed", "validityMessage"]); | ||
return (Object.assign(Object.assign({}, state), { values: setWith_1.default(() => undefined, path, rest.value, form.state.values), fields: Object.assign(Object.assign({}, form.state.fields), { [path]: { | ||
return (Object.assign(Object.assign({}, state), { values: rest.value === undefined | ||
? state.values | ||
: setWith_1.default(() => undefined, path, rest.value, form.state.values), fields: Object.assign(Object.assign({}, form.state.fields), { [path]: { | ||
validityMessage, | ||
@@ -72,0 +74,0 @@ changed, |
{ | ||
"name": "@domonda/form", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Powerful yet simple form library built using @domonda/plumb.", | ||
@@ -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
27235
471