mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-14 17:58:21 +00:00
[ACS-9374] Close dropdown on search submission
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
mat-icon-button
|
mat-icon-button
|
||||||
matPrefix
|
matPrefix
|
||||||
class="app-search-button"
|
class="app-search-button"
|
||||||
(click)="openDropdown()"
|
(click)="searchSubmit()"
|
||||||
(keydown.enter)="openDropdown()"
|
(keydown.enter)="searchSubmit()"
|
||||||
[title]="'SEARCH.BUTTON.TOOLTIP' | translate"
|
[title]="'SEARCH.BUTTON.TOOLTIP' | translate"
|
||||||
>
|
>
|
||||||
<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>
|
||||||
|
@@ -123,10 +123,6 @@ export class SearchInputControlComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
openDropdown() {
|
|
||||||
this.searchInput.nativeElement.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
searchSubmit() {
|
searchSubmit() {
|
||||||
this.searchFieldFormControl.markAsTouched();
|
this.searchFieldFormControl.markAsTouched();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user