Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Mobile-nav closes dropdowns on scroll––Fixed #45

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/nav-bar/mobile-nav.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
height: calc(100vh - 66px);
overflow-y: auto;
position: fixed;
padding-bottom: 80px;
}
/* mobile nav menu animation */
.collapse.mobile-scrollable-menu, .collapse.show {
Expand Down
2 changes: 1 addition & 1 deletion components/nav-bar/nav-bar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<!-- For Direct Links -->
<a *ngIf="item.link != null" class="smooth text-uppercase d-block p-4" href="{{item.link}}"> {{item.text}} </a>
<!-- For Links with Dropdowns -->
<div *ngIf="item.link == null" ngbDropdown class="d-block">
<div *ngIf="item.link == null" ngbDropdown class="d-block" [autoClose]="false">
<button ngbDropdownToggle class="dropdown-button btn btn-outline-primary text-uppercase d-block p-4"
id="{{'dropdown' + item.text}}">{{item.text}}</button>
<div ngbDropdownMenu class="dropdown-menu" [attr.aria-valuenow]="'dropdown' + item.text">
Expand Down