@bolttech/form-engine-core 0.0.1-beta.31 → 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.
- package/index.esm.js +4 -0
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -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;
|