]> Untitled Git - lemmy-ui.git/commitdiff
Associate NSFW label with its checkbox
authorDominic Mazzoni <dmazzoni@gmail.com>
Mon, 26 Jun 2023 04:11:23 +0000 (21:11 -0700)
committerDominic Mazzoni <dmazzoni@gmail.com>
Mon, 26 Jun 2023 04:11:23 +0000 (21:11 -0700)
src/shared/components/post/post-form.tsx

index 081792aa0e35841df6cefbe79728d653946621a4..84ea77ae86453f2035d2b8627c9bf7dd29a50b66 100644 (file)
@@ -531,7 +531,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>