Mercurial > hg > ng2-query-ismi
changeset 37:8e03b8fafb87
change two-way binding on select because Firefox has problems.
author | casties |
---|---|
date | Thu, 11 Feb 2016 17:50:38 +0100 |
parents | e8dc6a4c6773 |
children | 313a5360c2d3 |
files | app/query-select.component.ts |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/query-select.component.ts Thu Feb 11 17:06:40 2016 +0100 +++ b/app/query-select.component.ts Thu Feb 11 17:50:38 2016 +0100 @@ -22,7 +22,7 @@ </select> <span *ngIf="selectedMode?.id=='type_is' || selectedMode?.id=='relation_is'"> - <select *ngIf="queryOptions" [(ngModel)]="selectedOption" (change)="onSelectOption($event)"> + <select *ngIf="queryOptions" [ngModel]="selectedOption" (change)="onSelectOption($event)"> <option></option> <option *ngFor="#option of queryOptions" [value]="option"> {{option}} @@ -31,7 +31,7 @@ </span> <span *ngIf="selectedMode?.id=='att_contains' || selectedMode?.id=='att_contains_norm'"> - <select [(ngModel)]="selectedOption"> + <select [ngModel]="selectedOption" (change)="selectedOption=$event.target.value"> <option></option> <option *ngFor="#option of queryOptions" [value]="option"> {{option}} @@ -42,7 +42,7 @@ </span> <span *ngIf="selectedMode?.id=='att_num_range'"> - <select [(ngModel)]="selectedOption"> + <select [ngModel]="selectedOption" (change)="selectedOption=$event.target.value"> <option></option> <option *ngFor="#option of queryOptions" [value]="option"> {{option}}