mmhglobal-dynamicform 2.0.3 → 2.0.4
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/README.md +5 -2
- package/esm2020/lib/zudf/zudf.component.mjs +11 -5
- package/fesm2015/mmhglobal-dynamicform.mjs +10 -5
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +10 -4
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -12272,18 +12272,24 @@ class ZudfComponent {
|
|
|
12272
12272
|
// Field is not inside a container, so we skip it
|
|
12273
12273
|
return;
|
|
12274
12274
|
}
|
|
12275
|
+
// no mvglist, direct return. dont need do anything.
|
|
12276
|
+
if (!this.group['mvglist']) {
|
|
12277
|
+
return;
|
|
12278
|
+
}
|
|
12275
12279
|
// if container but not multi value group = true, we skip it.
|
|
12276
12280
|
const container = [controlNameSegments[0], controlNameSegments[1], controlNameSegments[2]].join('_');
|
|
12277
|
-
if (this.group['mvglist']) {
|
|
12278
|
-
|
|
12279
|
-
return;
|
|
12280
|
-
}
|
|
12281
|
+
if (!this.group['mvglist'].includes(container)) {
|
|
12282
|
+
return;
|
|
12281
12283
|
}
|
|
12282
12284
|
const control = fg.get(key);
|
|
12283
12285
|
if (!control) {
|
|
12284
12286
|
// If the control is not inside a container, skip it.
|
|
12285
12287
|
return;
|
|
12286
12288
|
}
|
|
12289
|
+
// return if formcontrol is valid.
|
|
12290
|
+
if (control.status === 'VALID') {
|
|
12291
|
+
return;
|
|
12292
|
+
}
|
|
12287
12293
|
const controlErrors = control.errors;
|
|
12288
12294
|
if (controlErrors) {
|
|
12289
12295
|
// Set the control's errors to null.
|