@reactables/forms 0.5.1-alpha.0 → 0.5.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -839,7 +839,7 @@ var mergeRemoveControl = function (state, form, controlRef) {
839
839
  }
840
840
  return __assign(__assign({}, acc), (_a = {}, _a[key] = __assign(__assign(__assign({}, existingControl), baseControl), { errors: errors, valid: selfValid && childrenValid, childrenValid: childrenValid }), _a));
841
841
  }, {});
842
- var descendants = existingBranch.filter(function (control) { return control.controlRef.length < parentRef.length; });
842
+ var descendants = existingBranch.filter(function (control) { return control.controlRef.length > parentRef.length; });
843
843
  var removedControls = __assign({}, state);
844
844
  descendants.forEach(function (control) {
845
845
  delete removedControls[getFormKey(control.controlRef)];
package/package.json CHANGED
@@ -14,12 +14,12 @@
14
14
  "author": "David Lai",
15
15
  "license": "ISC",
16
16
  "dependencies": {
17
- "@reactables/core": "^0.5.1-alpha.0",
17
+ "@reactables/core": "^0.5.2-alpha.0",
18
18
  "lodash.clonedeep": "^4.5.0",
19
19
  "lodash.isequal": "^4.5.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "rxjs": "^6.0.0 || ^7.0.0"
23
23
  },
24
- "version": "0.5.1-alpha.0"
24
+ "version": "0.5.2-alpha.0"
25
25
  }