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

CheckboxSwitch selected property is overwritten by defaultValue

    Details

    • Sprint:
      RC 1
    • Magnolia Release:
      5.0

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: