@bolttech/form-engine-core 1.0.0-beta.19 → 1.0.0-beta.20
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/index.esm.js +2 -8
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4036,13 +4036,7 @@ class FormCore {
|
|
|
4036
4036
|
* Prints the current values of all form fields.
|
|
4037
4037
|
*/
|
|
4038
4038
|
printValues() {
|
|
4039
|
-
|
|
4040
|
-
this.fields.forEach((val, key) => {
|
|
4041
|
-
if (val.value) {
|
|
4042
|
-
set(values, val.nameToSubmit || key, val.value);
|
|
4043
|
-
}
|
|
4044
|
-
});
|
|
4045
|
-
console.table(values);
|
|
4039
|
+
console.table(this.getFormValues().values);
|
|
4046
4040
|
}
|
|
4047
4041
|
/**
|
|
4048
4042
|
* Gets the current values of all form fields.
|
|
@@ -4054,7 +4048,7 @@ class FormCore {
|
|
|
4054
4048
|
const metadata = {};
|
|
4055
4049
|
const erroredFields = [];
|
|
4056
4050
|
this.fields.forEach((val, key) => {
|
|
4057
|
-
if (val.value) {
|
|
4051
|
+
if (typeof val.value === 'string' && val.value.length > 0) {
|
|
4058
4052
|
set(values, val.nameToSubmit || key, val.value);
|
|
4059
4053
|
metadata[key] = val.metadata;
|
|
4060
4054
|
}
|