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

CheckboxSwitch selected property is overwritten by defaultValue

XMLWordPrintable

      CheckBoxFieldFactory sets initial checkbox value based on the selected property in the CheckBoxFieldDefinition, but AbstractFieldFactory then creates a property (#getOrCreateProperty) with defaultValue, and assigns it to the field as the propertyDataSource, hence overwriting the previous default "selected" with null.

      We should migrate the selected property to defaultValue.

        Acceptance criteria

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD