From a5c59224086b56dcb1d1c0a74aa075f4fae7816d Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 24 Jun 2023 18:44:39 -0400 Subject: [PATCH] fix: Fix non-unique ID attribute on re-used element --- src/shared/components/post/post-listing.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index d5ddc2f2..d11db0df 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}