[MGNLUI-6562] codeField ignoring required property Created: 15/Feb/21  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
duplicate
duplicates MGNLUI-4972 New UI Framework: Code field that is ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Support for required property
Story Points: 3

 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



 Comments   
Comment by Quach Hao Thien [ 15/Mar/21 ]

covered in https://jira.magnolia-cms.com/browse/MGNLUI-6604

Generated at Mon Feb 12 09:37:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.