@bolttech/form-engine-core 0.0.1-beta.30 → 0.0.1-beta.32

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/index.esm.js +5 -1
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -2495,7 +2495,7 @@ class FormField {
2495
2495
  this._valid = false;
2496
2496
  this._mounted = true;
2497
2497
  this.initializeObservers();
2498
- this.value = this.initialValue;
2498
+ this.value = this.initialValue || '';
2499
2499
  }
2500
2500
  /**
2501
2501
  * method to initialize all recycled Subjects and initialize Observers on field instance creation or rerender
@@ -3339,6 +3339,10 @@ class FormCore {
3339
3339
  */
3340
3340
  setFieldVisibility(field, hasError, showOnlyIfTrue) {
3341
3341
  if (!this.fields.has(field)) {
3342
+ /*
3343
+ * check with João the need for a global mount event for the form
3344
+ * to avoid not displaying this message in some cases
3345
+ */
3342
3346
  console.warn(`failed to update visibility onto field ${field}`);
3343
3347
  } else {
3344
3348
  this.fields.get(field).visibility = showOnlyIfTrue ? hasError : !hasError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine-core",
3
- "version": "0.0.1-beta.30",
3
+ "version": "0.0.1-beta.32",
4
4
  "module": "./index.esm.js",
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",