Skip to content

Commit

Permalink
Add "id" attribute to Honeypot input (#256)
Browse files Browse the repository at this point in the history
The label was pointing to the input using the ID, but the input didn't
set the ID, breaking the relation between the label and the input.
  • Loading branch information
hakimLyon committed Oct 13, 2023
1 parent b8d5637 commit d3f8e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/react/honeypot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function HoneypotInputs({
<>
<label htmlFor={validFromFieldName}>{label}</label>
<input
id={validFromFieldName}
name={validFromFieldName}
type="text"
value={encryptedValidFrom}
Expand Down

0 comments on commit d3f8e81

Please sign in to comment.