Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Revert user-menu dropdown active class on sub-menu and autoclose only on outside click

kimsible837fe4f3fbdb
diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
index 530b9e376e..9a26614c92 100644
--- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
+++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
@@ -4,12 +4,8 @@
<a *ngIf="menuEntry.routerLink && isDisplayed(menuEntry)" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page title-page-settings">{{ menuEntry.label }}</a>
<div *ngIf="!menuEntry.routerLink && isDisplayed(menuEntry)" ngbDropdown class="parent-entry"
- #dropdown="ngbDropdown" autoClose="outside">
+ #dropdown="ngbDropdown" autoClose="true">
<span
- *ngIf="isInSmallView"
- tabindex=0
- [ngClass]="{ active: !!suffixLabels[menuEntry.label] }"
- (click)="openModal(id)" (keydown.enter)="openModal(id)"
role="button" class="title-page title-page-settings">
<ng-container i18n>{{ menuEntry.label }}</ng-container>
</span>
@@ -27,7 +23,7 @@
<div ngbDropdownMenu>
<ng-container *ngFor="let menuChild of menuEntry.children">
<a *ngIf="isDisplayed(menuChild)" class="dropdown-item"
- [ngClass]="{ icon: hasIcons, active: suffixLabels[menuEntry.label] === menuChild.label }"
+ [ngClass]="{ icon: hasIcons }"
[routerLink]="menuChild.routerLink">
<my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName" aria-hidden="true"></my-global-icon>