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

codeField ignoring required property

    XMLWordPrintable

Details

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

    Description

      Steps to reproduce

      1.  Create a codeField with the new 6 UI definition as follows
        form:
          properties:
            title:
              $type: codeField
              label: Code
              required: true
          layout:
            $type: tabbedLayout
            tabs:
              firstTab:
                label: First
                fields:
                  - name: title
        footerLayout:
          $type: defaultEditorActionLayout
          primaryActions:
            commit: commit
      1.  Create the component on a page
      2. Check you can save it without filling the code field

      Expected results

      The codeField requires some data to be saved

      Actual results

      The codeField can be saved being empty 

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD