Skip to content

Commit

Permalink
Change label for attr to htmlFor attr #207
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Aug 5, 2023
1 parent 1b8f1b6 commit c158e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oik-contact-field/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ registerBlockType(
<div { ...blockProps}>
<div>
<div className="label">
<label for={ attributes.name }>{attributes.label}
<label htmlFor={ attributes.name }>{attributes.label}
{ attributes.required && <span className="required">{attributes.requiredIndicator}</span> }
</label>
</div>
Expand Down

0 comments on commit c158e07

Please sign in to comment.