-
-
- {definition.map(({ info, label, constraintText, errorText, control }, defIndex) => (
- 0}
- >
- {render(item, index, control)}
-
- ))}
-
- {removable && (
-
- {
- removeButtonRefs[index] = ref ?? undefined;
- }}
- onClick={handleRemoveClick}
- >
- {removeButtonText}
-
-
- )}
-
+
+
+
+ {definition.map(({ info, label, constraintText, errorText, control }, defIndex) => (
+ 0}
+ controlId={defIndex === 0 ? firstControlId : undefined}
+ >
+ {render(item, index, control)}
+
+ ))}
+
+ {removable && (
+
+ {
+ removeButtonRefs[index] = ref ?? undefined;
+ }}
+ onClick={handleRemoveClick}
+ >
+ {removeButtonText}
+
+
+ )}
+
+
{isNarrowViewport && }
);