#89275IRRE fields marked as error, even when they are not required
Description
I have a display issue with a special TCA definition.
Given is a basic image field.
The only special configuration is:
'columnsOverrides' => [
'assets' => [
'config' => [
'minitems' => 2,
'maxitems' => 2,
],
],
],
After uploading the first image, all metadata fields in the first image are marked as required. After uploading the second image, the fields aren’t marked as required anymore. The reason is the css property:
.has-error .form-control {
border-color: #c83c3c;
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
Expected behavior:
Imagefield should marked as an error because minitems is set to 2.
Metadata fields shouldn’t marked as required after uploading only the first image.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.