mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-30 00:01:15 +00:00
fix: Fix non-unique ID attribute on re-used element
This commit is contained in:
parent
dd43827d67
commit
a5c5922408
1 changed files with 5 additions and 2 deletions
|
@ -707,13 +707,16 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
data-tippy-content={I18NextService.i18n.t("more")}
|
data-tippy-content={I18NextService.i18n.t("more")}
|
||||||
data-bs-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-controls="advancedButtonsDropdown"
|
aria-controls={`advancedButtonsDropdown${post.id}`}
|
||||||
aria-label={I18NextService.i18n.t("more")}
|
aria-label={I18NextService.i18n.t("more")}
|
||||||
>
|
>
|
||||||
<Icon icon="more-vertical" inline />
|
<Icon icon="more-vertical" inline />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<ul className="dropdown-menu" id="advancedButtonsDropdown">
|
<ul
|
||||||
|
className="dropdown-menu"
|
||||||
|
id={`advancedButtonsDropdown${post.id}`}
|
||||||
|
>
|
||||||
{!this.myPost ? (
|
{!this.myPost ? (
|
||||||
<>
|
<>
|
||||||
<li>{this.reportButton}</li>
|
<li>{this.reportButton}</li>
|
||||||
|
|
Loading…
Reference in a new issue