Fix dropdown top menu on mobile
authorChocobozzz <me@florianbigard.com>
Thu, 25 Apr 2019 08:02:02 +0000 (10:02 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 25 Apr 2019 08:02:02 +0000 (10:02 +0200)
client/src/app/shared/menu/top-menu-dropdown.component.html

index 8d58fa1db344b09ff21a39d934e1d7b697d9585f..54a8f9e808771764ca9a704449e9c2734adfa695 100644 (file)
@@ -3,7 +3,7 @@
 
     <a *ngIf="menuEntry.routerLink" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page">{{ menuEntry.label }}</a>
 
-    <div *ngIf="!menuEntry.routerLink" ngbDropdown class="parent-entry" #dropdown="ngbDropdown" (mouseleave)="closeDropdownIfHovered(dropdown)">
+    <div *ngIf="!menuEntry.routerLink" ngbDropdown container="body" class="parent-entry" #dropdown="ngbDropdown" (mouseleave)="closeDropdownIfHovered(dropdown)">
       <span
         (mouseenter)="openDropdownOnHover(dropdown)" [ngClass]="{ active: !!suffixLabels[menuEntry.label] }" ngbDropdownAnchor
         (click)="dropdownAnchorClicked(dropdown)" role="button" class="title-page"