@dereekb/dbx-form 8.5.0 → 8.5.3

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.
@@ -2592,7 +2592,7 @@ function textEditorField(config) {
2592
2592
 
2593
2593
  class DbxFormRepeatArrayTypeComponent extends FieldArrayType {
2594
2594
  get repeatArrayField() {
2595
- return this.field.repeatArrayField;
2595
+ return this.field.props;
2596
2596
  }
2597
2597
  get label() {
2598
2598
  return this.field.props.label ?? this.field.key;
@@ -2604,7 +2604,7 @@ class DbxFormRepeatArrayTypeComponent extends FieldArrayType {
2604
2604
  return this.repeatArrayField.removeText ?? 'Remove';
2605
2605
  }
2606
2606
  get max() {
2607
- return this.field.props?.maxLength;
2607
+ return this.field.props.maxLength;
2608
2608
  }
2609
2609
  get count() {
2610
2610
  return this.field.fieldGroup?.length ?? 0;
@@ -2765,13 +2765,11 @@ function repeatArrayField(config) {
2765
2765
  return formlyField({
2766
2766
  key,
2767
2767
  type: 'repeatarray',
2768
- repeatArrayField: {
2768
+ ...propsForFieldConfig(config, {
2769
+ maxLength,
2769
2770
  labelForField,
2770
2771
  addText,
2771
2772
  removeText
2772
- },
2773
- ...propsForFieldConfig(config, {
2774
- maxLength
2775
2773
  }),
2776
2774
  fieldArray: {
2777
2775
  fieldGroup: repeatFieldGroup