Client: fix search dropdown
authorChocobozzz <florian.bigard@gmail.com>
Thu, 13 Oct 2016 19:59:19 +0000 (21:59 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 13 Oct 2016 19:59:19 +0000 (21:59 +0200)
client/src/app/app.module.ts
client/src/app/shared/search/search.component.html

index 980625f13495cd8a612f56d635c1b0334e9d2a7e..80734f7a2b15599269bdbdae7b5c27c36229c6e4 100644 (file)
@@ -6,6 +6,7 @@ import { RouterModule } from '@angular/router';
 import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
 
 import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
+import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
 import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
 import { PaginationModule } from 'ng2-bootstrap/components/pagination';
 import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
@@ -111,6 +112,7 @@ const APP_PROVIDERS = [
     HttpModule,
     RouterModule.forRoot(routes),
 
+    DropdownModule,
     ProgressbarModule,
     PaginationModule,
     FileUploadModule
index fb13ac72e2a9ea591649ea227cbf660f087cb9fb..b3afc95980587563a58517a497b3106238704199 100644 (file)
@@ -3,8 +3,8 @@
     <button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle>
       {{ getStringChoice(searchCriterias.field) }} <span class="caret"></span>
     </button>
-    <ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav">
-      <li *ngFor="let choice of choiceKeys" class="dropdown-item">
+    <ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav" dropdownMenu>
+      <li *ngFor="let choice of choiceKeys" class="dropdown-item" role="menu-item">
         <a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a>
       </li>
     </ul>