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

ComboBox nested within SwitchableField doesn't display defaultValue when it's Boolean type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • None

      Steps to reproduce

      1.  Create a component which has a Combobox field within a Switchable Field, e.g:
        label: Test
        
        form:
          properties:
            test1:
              $type: switchableField
              itemProvider:
                $type: jcrChildNodeProvider
              field:
                $type: comboBoxField
                defaultValue: false
                datasource:
                  $type: optionListDatasource
                  options:
                    - name: false
                      value: false
                      label: no
                    - name: true
                      value: true
                      label: yes
      2.  Create the dialog and check the result

      Expected results

      Value false is pre-selected

      Actual results

      No value is selected

      Workaround

      N/A

      Development notes

      If the Combobox field is not nested within a Switchable field, the defaultValue property works and the false option is pre-selected when the dialog opens

        Acceptance criteria

              Unassigned Unassigned
              ccantalapiedra Carlos Cantalapiedra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD