]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/post/post-form.tsx
Associate NSFW label with its checkbox
[lemmy-ui.git] / src / shared / components / post / post-form.tsx
index b71ef5477e0b28bb59ea862b3c23963dcd64f8ca..266843ef1e69e7912db292c13ddaff4ac50606d2 100644 (file)
@@ -528,7 +528,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
               checked={this.state.form.nsfw}
               onChange={linkEvent(this, handlePostNsfwChange)}
             />
-            <label className="form-check-label">
+            <label className="form-check-label" htmlFor="post-nsfw">
               {I18NextService.i18n.t("nsfw")}
             </label>
           </div>