Skip to content

Commit

Permalink
test(dropdown): use 'ng-template' instead of 'ng-container' (#3431)
Browse files Browse the repository at this point in the history
`ngbDropdownMenu` uses `@ContentChildren` query that wont't work with NG9
  • Loading branch information
maxokorokov committed Oct 24, 2019
1 parent d64aad4 commit 3836c03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e-app/src/app/dropdown/focus/dropdown-focus.component.html
Expand Up @@ -10,19 +10,19 @@ <h3>Dropdown focus tests</h3>
<button class="btn btn-outline-secondary" id="dropdown" ngbDropdownToggle>Choose and option</button>
<div ngbDropdownMenu aria-labelledby="dropdown">

<ng-container *ngIf="withItems">
<ng-template [ngIf]="withItems">
<button ngbDropdownItem id="item-1">One</button>
<hr>
<button ngbDropdownItem disabled>Disabled</button>
<button class="dropdown-item">Not arrow-focusable</button>
<hr>
<button ngbDropdownItem id="item-2">Two</button>
</ng-container>
</ng-template>

<ng-container *ngIf="!withItems">
<ng-template [ngIf]="!withItems">
<button class="dropdown-item">One</button>
<button class="dropdown-item">Two</button>
</ng-container>
</ng-template>

</div>
</div>
Expand Down

0 comments on commit 3836c03

Please sign in to comment.