goldnead / statamic-collapse-fieldtype

A Collapse-Fieldtype for Statamic to beautifully hide and show your fields.
MIT License
2 stars 3 forks source link

Nested Replicator Fields Stuck Loading #7

Open AaronAtkinson opened 7 months ago

AaronAtkinson commented 7 months ago

When a replicator field is placed inside a collapse field, the replicator contents fail to load when the collapse field is expanded.

I believe this is the same as the grid behavior pointed out in issue #1

The set up in the provided image is a single default collapse field, containing a single default replicator, containing a single default input field (by default field I mean, no changes were made after adding the field).

(EDIT: This is a really nice add-on. The fact that you built and shared it is greatly appreciated!)

Here is the yaml file for the blueprint in the screenshot:

tabs:
  main:
    display: Main
    sections:
      -
        display: 'Collapse Replicator Test'
        fields:
          -
            handle: collapse_field
            field:
              fields:
                -
                  handle: replicator_field
                  field:
                    collapse: false
                    previews: true
                    fullscreen: true
                    sets:
                      new_set_group:
                        display: 'New Set Group'
                        instructions: null
                        icon: null
                        sets:
                          new_set:
                            display: 'New Set'
                            instructions: null
                            icon: null
                            fields:
                              -
                                handle: text_field
                                field:
                                  input_type: text
                                  antlers: false
                                  type: text
                                  display: 'Text Field'
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  replicator_preview: true
                                  hide_display: false
                    type: replicator
                    display: 'Replicator Field'
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    replicator_preview: true
                    hide_display: false
              type: collapse
              display: 'Collapse Field'
              listable: hidden
              instructions_position: above
              visibility: visible
              replicator_preview: true
              hide_display: false
image