[ACA-1756] Search - TypeError when redirected search results (#604)

This commit is contained in:
Cilibiu Bogdan 2018-09-05 11:22:09 +03:00 committed by Denys Vuika
parent 3a066b9bc0
commit 3d5553e206

View File

@ -9,8 +9,9 @@
<mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
</button>
<mat-form-field class="adf-input-form-field-divider">
<ng-container [ngSwitch]="liveSearchEnabled">
<input matInput #searchInput
*ngIf="liveSearchEnabled"
*ngSwitchCase="liveSearchEnabled"
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
[type]="inputType"
[autocomplete]="getAutoComplete()"
@ -24,13 +25,14 @@
[searchAutocomplete]="auto"
(keyup.enter)="searchSubmit($event)">
<input matInput
*ngIf="!liveSearchEnabled"
*ngSwitchDefault
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
[type]="inputType"
[autocomplete]="getAutoComplete()"
[(ngModel)]="searchTerm"
(ngModelChange)="inputChange($event)"
(keyup.enter)="searchSubmit($event)">
</ng-container>
<div matSuffix class="adf-clear-search-icon-wrapper">
<mat-icon *ngIf="searchTerm.length > 0"