]> 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)
committerJay Sitter <jay@jaysitter.com>
Mon, 26 Jun 2023 22:30:31 +0000 (18:30 -0400)
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>