Skip to content

Commit

Permalink
Bugfix: Use original option object in selected option template (Fixes
Browse files Browse the repository at this point in the history
…#92).
  • Loading branch information
Bastiaan van den Berg committed Jul 17, 2017
1 parent f983440 commit 0011385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*ngIf="!multiple">
<div class="value"
*ngIf="optionList.hasSelected">
<ng-template [ngOutletContext]="{option: optionList.selection[0], onDeselectOptionClick: onDeselectOptionClick}" [ngTemplateOutlet]="optionTemplate"></ng-template>
<ng-template [ngOutletContext]="{option: optionList.selection[0].wrappedOption, onDeselectOptionClick: onDeselectOptionClick}" [ngTemplateOutlet]="optionTemplate"></ng-template>
<span *ngIf="!optionTemplate">{{optionList.selection[0].label}}</span>
</div>
<div class="placeholder"
Expand Down

0 comments on commit 0011385

Please sign in to comment.