From: Jay Sitter Date: Sat, 24 Jun 2023 22:44:39 +0000 (-0400) Subject: fix: Fix non-unique ID attribute on re-used element X-Git-Url: http://these/git/%7B%60https:/README.ja.md?a=commitdiff_plain;h=a5c59224086b56dcb1d1c0a74aa075f4fae7816d;p=lemmy-ui.git fix: Fix non-unique ID attribute on re-used element --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index d5ddc2f..d11db0d 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -707,13 +707,16 @@ export class PostListing extends Component { data-tippy-content={I18NextService.i18n.t("more")} data-bs-toggle="dropdown" aria-expanded="false" - aria-controls="advancedButtonsDropdown" + aria-controls={`advancedButtonsDropdown${post.id}`} aria-label={I18NextService.i18n.t("more")} > -
    +
      {!this.myPost ? ( <>
    • {this.reportButton}