mmhglobal-dynamicform 2.1.1 → 2.1.2

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.
@@ -11532,8 +11532,14 @@ class ZudfComponent extends ContainerFieldBase {
11532
11532
  obs = this.fieldService.getFormFieldCode(fieldName, 'FormField', this, 'fields');
11533
11533
  }
11534
11534
  super.initComponent().pipe(switchMap$1(() => obs), switchMap$1((field) => {
11535
+ if (this.data.FieldElementCode) {
11536
+ // use obs value only if FieldElementCode is set. if nto default as null.
11537
+ this.data.Value = field;
11538
+ }
11539
+ else {
11540
+ this.data.Value = null;
11541
+ }
11535
11542
  // Store initial data value and set component scope and prefix
11536
- this.data.Value = field;
11537
11543
  this.initialDataValue = this.data.Value;
11538
11544
  this.componentScopeName = 'zudf_' + this.data.Name;
11539
11545
  this.componentPrefix = 'zudf_' + this.data.Name;