Details
-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
None
-
None
-
None
Description
Steps to reproduce
- Create a TwinColumnField component (copy definition from here)
- At the yams dialog definition, include the required property and set it to true
- 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)
Checklists
Acceptance criteria