Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-8710

MultiField with nested composite fields needs a click to display the fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • 6.2.45, 6.3.0
    • 6.2.42
    • None
    • None

      Steps to reproduce

      1. Create a component with the follow definition: 
        myComponent.yaml
         label: Dokumente
        form:
          properties:
            rubriken:
              $type: jcrMultiField
              label: Rubriken
              buttonSelectAddLabel: 'Rubrik hinzufügen'
              field:
                $type: compositeField
                layout:
                  $type: tabbedLayout
                  tabs:
                    title:
                      label: 'Titel'
                      fields:
                        - name: rubrik
                    folders:
                      label: 'Ordner'
                      fields:
                        - name: documentFolders
                    documents:
                      label: 'Dokumente'
                      fields:
                        - name: documents
                label: ''
                itemProvider:
                  $type: jcrChildNodeProvider
                properties:
                  rubrik:
                    label: ''
                    $type: textField
                  documentFolders:
                    label: ' '
                    $type: jcrMultiLinkField
                    chooserId: dam-app-core:multiChooser
                    field:
                      label: ''
                      $type: damLinkField
                  documents:
                    label: ''
                    $type: jcrMultiLinkField
                    chooserId: dam-app-core:multiChooser
                    field:
                      label: ''
                      $type: damLinkField
      2.  Insert the component at a page
      3. Create a couple of composite fields and set a title (titel)
      4. Save the dialog
      5. Click on the pencil icon within the component green bar
      6. Check the dialog opens and everything looks fine (both composite display the fields and they are populated with the data inserted in the step 3)
      7. Close the dialog
      8. Select the dialog and click on the "Edit component" action within the action bar
      9. Check the dialog opens but the textfields which should display the titel are not displayed
      10. Click anywhere within the dialog
      11. Check the fields are displayed and the correct information is fulfilled

      Expected results

      Both actions "Edit component" and the "edit" from the green bar behaves the same

      Actual results

      The fields are displayed and fulfilled when hitting the pencil icon at the component green bar but if you use the "Edit component" action, then you need to click somewhere within the dialog to see those fields.

      Workaround

      if you click at the pencil icon within the component green bar, then the fields are properly loaded when the dialog opens

      Development notes

      N/A

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              ccantalapiedra Carlos Cantalapiedra
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Work Started:

                  Bug DoR
                  Task DoD