Skip to content

Commit eb5708e

Browse files
Use formField.id
1 parent 178e8a4 commit eb5708e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotcom-rendering/src/components/CalloutEmbed/FormFields/FileUpload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const FileUpload = ({ formField, formData, setFormData }: Props) => {
4848
<>
4949
<FieldLabel formField={formField} />
5050
<input
51-
id={formField.name}
51+
id={formField.id}
5252
data-testid={`form-field-${formField.id}`}
5353
css={fileUploadInputStyles}
5454
type="file"

0 commit comments

Comments
 (0)