[MGNLUI-6556] required property not working on TwinColumnField Created: 12/Feb/21  Updated: 12/Feb/21  Resolved: 12/Feb/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

Attachments: PNG File required-set.png    
Issue Links:
Problem/Incident
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

 Description   

Steps to reproduce

  1.  Create a TwinColumnField component (copy definition from here)
  2.  At the yams dialog definition, include the required property and set it to true
  3. Create the component and check you can save it without making any selection

Expected results

When required is true, at least one element must be selected

Actual results

You can save the component even with no elements selected

Workaround

N/A 

Development notes

 

Checked that, tho TwinColSelectField extends configuredFieldDefinition an it has the required property, when the component is initialized the required = true is set but ignored when the user saves the dialog with no data selected (check required-set.png image)

 


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