Skip to content

Commit

Permalink
hide dropdown if there are no facet options
Browse files Browse the repository at this point in the history
  • Loading branch information
grimurd committed Apr 26, 2019
1 parent 13cdab7 commit cc9ae48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div [ngClass]="{'search-entry': true, 'dropdown': true, 'active': isMenuOpen}">
<input class="search-input" type="text" placeholder="{{ strings.prompt }}" autocomplete="off" (keyup)="handleKeyUp($event)" (keydown)="handleKeyDown($event)" (keypress)="handleKeyPress($event)" [(ngModel)]="searchInput" ngxMagicSearch="setFocusedEventEmitter"
/>
<div class="dropdown-content" *ngIf="filteredObj.length > 0">
<div class="dropdown-content" *ngIf="!facetSelected || (filteredOptions && filteredOptions.length > 0)">
<div class="arrow-up"></div>
<ul class="ngx-dropdown-menu">
<ng-template [ngIf]="!facetSelected">
Expand Down

0 comments on commit cc9ae48

Please sign in to comment.