mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
[ACA-1756] Search - TypeError when redirected search results (#604)
This commit is contained in:
parent
3a066b9bc0
commit
3d5553e206
@ -9,28 +9,30 @@
|
|||||||
<mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
|
<mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<mat-form-field class="adf-input-form-field-divider">
|
<mat-form-field class="adf-input-form-field-divider">
|
||||||
<input matInput #searchInput
|
<ng-container [ngSwitch]="liveSearchEnabled">
|
||||||
*ngIf="liveSearchEnabled"
|
<input matInput #searchInput
|
||||||
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
|
*ngSwitchCase="liveSearchEnabled"
|
||||||
[type]="inputType"
|
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
|
||||||
[autocomplete]="getAutoComplete()"
|
[type]="inputType"
|
||||||
id="adf-control-input"
|
[autocomplete]="getAutoComplete()"
|
||||||
[(ngModel)]="searchTerm"
|
id="adf-control-input"
|
||||||
(focus)="activateToolbar()"
|
[(ngModel)]="searchTerm"
|
||||||
(blur)="onBlur($event)"
|
(focus)="activateToolbar()"
|
||||||
(keyup.escape)="toggleSearchBar()"
|
(blur)="onBlur($event)"
|
||||||
(keyup.arrowdown)="selectFirstResult()"
|
(keyup.escape)="toggleSearchBar()"
|
||||||
(ngModelChange)="inputChange($event)"
|
(keyup.arrowdown)="selectFirstResult()"
|
||||||
[searchAutocomplete]="auto"
|
(ngModelChange)="inputChange($event)"
|
||||||
(keyup.enter)="searchSubmit($event)">
|
[searchAutocomplete]="auto"
|
||||||
<input matInput
|
(keyup.enter)="searchSubmit($event)">
|
||||||
*ngIf="!liveSearchEnabled"
|
<input matInput
|
||||||
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
|
*ngSwitchDefault
|
||||||
[type]="inputType"
|
[attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate"
|
||||||
[autocomplete]="getAutoComplete()"
|
[type]="inputType"
|
||||||
[(ngModel)]="searchTerm"
|
[autocomplete]="getAutoComplete()"
|
||||||
(ngModelChange)="inputChange($event)"
|
[(ngModel)]="searchTerm"
|
||||||
(keyup.enter)="searchSubmit($event)">
|
(ngModelChange)="inputChange($event)"
|
||||||
|
(keyup.enter)="searchSubmit($event)">
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
<div matSuffix class="adf-clear-search-icon-wrapper">
|
<div matSuffix class="adf-clear-search-icon-wrapper">
|
||||||
<mat-icon *ngIf="searchTerm.length > 0"
|
<mat-icon *ngIf="searchTerm.length > 0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user