@reactables/forms 2.0.0-beta.3 → 2.0.0-beta.5
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.
- package/dist/RxForm/RxForm.d.ts +2 -2
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -382,9 +382,11 @@ var controlRefCheck = function (ref) {
|
|
|
382
382
|
catch (_a) { }
|
|
383
383
|
};
|
|
384
384
|
|
|
385
|
-
var checkKeys = function (
|
|
386
|
-
|
|
387
|
-
|
|
385
|
+
var checkKeys = function (oldObj, newObj) {
|
|
386
|
+
var oldKeys = Object.keys(oldObj).slice().sort().join();
|
|
387
|
+
var newKeys = Object.keys(newObj).slice().sort().join();
|
|
388
|
+
if (oldKeys !== newKeys) {
|
|
389
|
+
console.warn("You are trying to update multiple controls but they key don't match. It is recommended your keys match. Old keys: ".concat(oldKeys, ". New Keys: ").concat(newKeys, " "));
|
|
388
390
|
}
|
|
389
391
|
};
|
|
390
392
|
var updateDescendantValues = function (form, _a, providers) {
|